Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / components / component_updater / BUILD.gn
blob404a9ae8ad8dba99ade84ecd1811ad4daf3bdd37
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.
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     "update_checker.cc",
34     "update_checker.h",
35     "update_response.cc",
36     "update_response.h",
37     "url_fetcher_downloader.cc",
38     "url_fetcher_downloader.h",
39   ]
41   deps = [
42     "//base",
43     "//components/crx_file",
44     "//components/omaha_query_params",
45     "//courgette:courgette_lib",
46     "//crypto",
47     "//third_party/libxml",
48     "//third_party/zlib:zip",
49     "//net",
50     "//ui/base",
51   ]
54 static_library("test_support") {
55   sources = [
56     "test/test_configurator.cc",
57     "test/test_configurator.h",
58     "test/test_installer.cc",
59     "test/test_installer.h",
60     "test/url_request_post_interceptor.cc",
61     "test/url_request_post_interceptor.h",
62   ]
64   deps = [
65     ":component_updater",
66     "//testing/gtest",
67     "//testing/gmock",
68   ]
71 source_set("unit_tests") {
72   sources = [
73     "test/component_patcher_unittest.cc",
74     "test/component_updater_ping_manager_unittest.cc",
75     "test/crx_downloader_unittest.cc",
76     "test/update_checker_unittest.cc",
77     "test/update_response_unittest.cc",
78   ]
80   deps = [
81     ":component_updater",
82     ":test_support",
83     "//testing/gtest",
84     "//testing/gmock",
85     "//third_party/libxml",
86   ]