Upload upstream chromium 69.0.3497
[platform/framework/web/chromium-efl.git] / components / component_updater / BUILD.gn
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 static_library("component_updater") {
6   sources = [
7     "component_installer.cc",
8     "component_installer.h",
9     "component_updater_command_line_config_policy.cc",
10     "component_updater_command_line_config_policy.h",
11     "component_updater_paths.cc",
12     "component_updater_paths.h",
13     "component_updater_service.cc",
14     "component_updater_service.h",
15     "component_updater_service_internal.h",
16     "component_updater_switches.cc",
17     "component_updater_switches.h",
18     "component_updater_url_constants.cc",
19     "component_updater_url_constants.h",
20     "configurator_impl.cc",
21     "configurator_impl.h",
22     "pref_names.cc",
23     "pref_names.h",
24     "timer.cc",
25     "timer.h",
26     "timer_update_scheduler.cc",
27     "timer_update_scheduler.h",
28     "update_scheduler.h",
29   ]
30
31   deps = [
32     "//base",
33     "//components/update_client",
34     "//components/version_info",
35     "//third_party/boringssl:boringssl",
36     "//ui/base",
37     "//url",
38   ]
39 }
40
41 static_library("crl_set_remover") {
42   sources = [
43     "crl_set_remover.cc",
44     "crl_set_remover.h",
45   ]
46
47   deps = [
48     "//base",
49   ]
50 }
51
52 static_library("test_support") {
53   testonly = true
54   sources = [
55     "mock_component_updater_service.cc",
56     "mock_component_updater_service.h",
57   ]
58
59   public_deps = [
60     ":component_updater",
61     "//base",
62     "//testing/gmock",
63   ]
64 }
65
66 source_set("unit_tests") {
67   testonly = true
68   sources = [
69     "component_installer_unittest.cc",
70     "component_updater_service_unittest.cc",
71     "configurator_impl_unittest.cc",
72     "timer_unittest.cc",
73   ]
74
75   deps = [
76     ":component_updater",
77     "//base",
78     "//base/test:test_support",
79     "//components/update_client:test_support",
80     "//services/service_manager/public/cpp",
81     "//testing/gmock",
82     "//testing/gtest",
83     "//third_party/boringssl:boringssl",
84   ]
85 }