Upload upstream chromium 94.0.4606.31
[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     "component_updater_utils.cc",
21     "component_updater_utils.h",
22     "configurator_impl.cc",
23     "configurator_impl.h",
24     "pref_names.cc",
25     "pref_names.h",
26     "timer.cc",
27     "timer.h",
28     "timer_update_scheduler.cc",
29     "timer_update_scheduler.h",
30     "update_scheduler.h",
31   ]
32
33   deps = [
34     "//base",
35     "//build:chromeos_buildflags",
36     "//components/crx_file",
37     "//components/update_client",
38     "//components/version_info",
39     "//third_party/boringssl:boringssl",
40     "//ui/base",
41     "//url",
42   ]
43 }
44
45 static_library("crl_set_remover") {
46   sources = [
47     "crl_set_remover.cc",
48     "crl_set_remover.h",
49   ]
50
51   deps = [ "//base" ]
52 }
53
54 static_library("test_support") {
55   testonly = true
56   sources = [
57     "mock_component_updater_service.cc",
58     "mock_component_updater_service.h",
59   ]
60
61   public_deps = [
62     ":component_updater",
63     "//base",
64     "//testing/gmock",
65   ]
66 }
67
68 source_set("unit_tests") {
69   testonly = true
70   sources = [
71     "component_installer_unittest.cc",
72     "component_updater_service_unittest.cc",
73     "configurator_impl_unittest.cc",
74     "timer_unittest.cc",
75   ]
76
77   deps = [
78     ":component_updater",
79     "//base",
80     "//base/test:test_support",
81     "//components/crx_file",
82     "//components/update_client:test_support",
83     "//services/service_manager/public/cpp",
84     "//testing/gmock",
85     "//testing/gtest",
86     "//third_party/boringssl:boringssl",
87   ]
88 }