Revert of NaCl: Remove the IRT's Gyp dependency on libsrpc (patchset #1 id:1 of https...
[chromium-blink-merge.git] / components / update_client / BUILD.gn
blob8dd5ef818bb12c67985d44f9b0912d05ba1a4bd6
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     "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_unpacker.cc",
14     "component_unpacker.h",
15     "ping_manager.cc",
16     "ping_manager.h",
17     "utils.cc",
18     "utils.h",
19     "crx_update_item.h",
20     "crx_downloader.cc",
21     "crx_downloader.h",
22     "request_sender.cc",
23     "request_sender.h",
24     "update_checker.cc",
25     "update_checker.h",
26     "update_client.cc",
27     "update_client.h",
28     "update_query_params.cc",
29     "update_query_params.h",
30     "update_query_params_delegate.cc",
31     "update_query_params_delegate.h",
32     "update_response.cc",
33     "update_response.h",
34     "url_fetcher_downloader.cc",
35     "url_fetcher_downloader.h",
36   ]
38   deps = [
39     "//base",
40     "//components/crx_file",
41     "//courgette:courgette_lib",
42     "//crypto",
43     "//third_party/libxml",
44     "//third_party/zlib:zip",
45     "//net",
46     "//url",
47   ]
50 source_set("test_support") {
51   testonly = true
52   sources = [
53     "test/test_configurator.cc",
54     "test/test_configurator.h",
55     "test/test_installer.cc",
56     "test/test_installer.h",
57     "test/url_request_post_interceptor.cc",
58     "test/url_request_post_interceptor.h",
59   ]
61   deps = [
62     ":update_client",
63     "//base",
64     "//net:test_support",
65     "//testing/gtest",
66     "//testing/gmock",
67     "//url",
68   ]
71 source_set("unit_tests") {
72   testonly = true
73   sources = [
74     "test/component_patcher_unittest.cc",
75     "test/ping_manager_unittest.cc",
76     "test/crx_downloader_unittest.cc",
77     "test/request_sender_unittest.cc",
78     "test/update_checker_unittest.cc",
79     "test/update_response_unittest.cc",
80   ]
82   deps = [
83     ":update_client",
84     ":test_support",
85     "//base",
86     "//courgette:courgette_lib",
87     "//net:test_support",
88     "//testing/gtest",
89     "//testing/gmock",
90     "//third_party/libxml",
91   ]