Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / update_client / BUILD.gn
blobec76b7e0808efdb96898a9496dfb08c70031650b
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("update_client") {
6   sources = [
7     "action.cc",
8     "action.h",
9     "action_update.cc",
10     "action_update.h",
11     "action_update_check.cc",
12     "action_update_check.h",
13     "action_wait.cc",
14     "action_wait.h",
15     "background_downloader_win.cc",
16     "background_downloader_win.h",
17     "component_patcher.cc",
18     "component_patcher.h",
19     "component_patcher_operation.cc",
20     "component_patcher_operation.h",
21     "component_unpacker.cc",
22     "component_unpacker.h",
23     "configurator.h",
24     "crx_downloader.cc",
25     "crx_downloader.h",
26     "crx_update_item.h",
27     "ping_manager.cc",
28     "ping_manager.h",
29     "request_sender.cc",
30     "request_sender.h",
31     "task.h",
32     "task_update.cc",
33     "task_update.h",
34     "update_checker.cc",
35     "update_checker.h",
36     "update_client.cc",
37     "update_client.h",
38     "update_client_internal.h",
39     "update_engine.cc",
40     "update_engine.h",
41     "update_query_params.cc",
42     "update_query_params.h",
43     "update_query_params_delegate.cc",
44     "update_query_params_delegate.h",
45     "update_response.cc",
46     "update_response.h",
47     "url_fetcher_downloader.cc",
48     "url_fetcher_downloader.h",
49     "utils.cc",
50     "utils.h",
51   ]
53   deps = [
54     "//base",
55     "//components/crx_file",
56     "//courgette:courgette_lib",
57     "//crypto",
58     "//third_party/libxml",
59     "//third_party/zlib:zip",
60     "//net",
61     "//ui/base",
62     "//url",
63   ]
66 source_set("test_support") {
67   testonly = true
68   sources = [
69     "test_configurator.cc",
70     "test_configurator.h",
71     "test_installer.cc",
72     "test_installer.h",
73     "url_request_post_interceptor.cc",
74     "url_request_post_interceptor.h",
75   ]
77   deps = [
78     ":update_client",
79     "//base",
80     "//net:test_support",
81     "//testing/gtest",
82     "//testing/gmock",
83     "//url",
84   ]
87 source_set("unit_tests") {
88   testonly = true
89   sources = [
90     "component_patcher_unittest.cc",
91     "crx_downloader_unittest.cc",
92     "ping_manager_unittest.cc",
93     "request_sender_unittest.cc",
94     "update_checker_unittest.cc",
95     "update_client_unittest.cc",
96     "update_query_params_unittest.cc",
97     "update_response_unittest.cc",
98   ]
100   deps = [
101     ":update_client",
102     ":test_support",
103     "//base",
104     "//courgette:courgette_lib",
105     "//net:test_support",
106     "//testing/gtest",
107     "//testing/gmock",
108     "//third_party/libxml",
109   ]