Home | History | Annotate | Download | only in component_updater
      1 # Copyright 2014 The Chromium Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 source_set("component_updater") {
      6   sources = [
      7     "background_downloader_win.cc",
      8     "background_downloader_win.h",
      9     "component_patcher.cc",
     10     "component_patcher.h",
     11     "component_patcher_operation.cc",
     12     "component_patcher_operation.h",
     13     "component_updater_configurator.h",
     14     "component_unpacker.cc",
     15     "component_unpacker.h",
     16     "component_updater_paths.cc",
     17     "component_updater_paths.h",
     18     "component_updater_ping_manager.cc",
     19     "component_updater_ping_manager.h",
     20     "component_updater_service.cc",
     21     "component_updater_service.h",
     22     "component_updater_switches.cc",
     23     "component_updater_switches.h",
     24     "component_updater_utils.cc",
     25     "component_updater_utils.h",
     26     "crx_update_item.h",
     27     "crx_downloader.cc",
     28     "crx_downloader.h",
     29     "default_component_installer.cc",
     30     "default_component_installer.h",
     31     "pref_names.cc",
     32     "pref_names.h",
     33     "request_sender.cc",
     34     "request_sender.h",
     35     "update_checker.cc",
     36     "update_checker.h",
     37     "update_response.cc",
     38     "update_response.h",
     39     "url_fetcher_downloader.cc",
     40     "url_fetcher_downloader.h",
     41   ]
     42 
     43   deps = [
     44     "//base",
     45     "//components/crx_file",
     46     "//components/omaha_query_params",
     47     "//courgette:courgette_lib",
     48     "//crypto",
     49     "//third_party/libxml",
     50     "//third_party/zlib:zip",
     51     "//net",
     52     "//ui/base",
     53   ]
     54 }
     55 
     56 static_library("test_support") {
     57   testonly = true
     58   sources = [
     59     "test/test_configurator.cc",
     60     "test/test_configurator.h",
     61     "test/test_installer.cc",
     62     "test/test_installer.h",
     63     "test/url_request_post_interceptor.cc",
     64     "test/url_request_post_interceptor.h",
     65   ]
     66 
     67   deps = [
     68     ":component_updater",
     69     "//testing/gtest",
     70     "//testing/gmock",
     71   ]
     72 }
     73 
     74 source_set("unit_tests") {
     75   testonly = true
     76   sources = [
     77     "test/component_patcher_unittest.cc",
     78     "test/component_updater_ping_manager_unittest.cc",
     79     "test/crx_downloader_unittest.cc",
     80     "test/request_sender_unittest.cc",
     81     "test/update_checker_unittest.cc",
     82     "test/update_response_unittest.cc",
     83   ]
     84 
     85   deps = [
     86     ":component_updater",
     87     ":test_support",
     88     "//testing/gtest",
     89     "//testing/gmock",
     90     "//third_party/libxml",
     91   ]
     92 }
     93