Upload upstream chromium 108.0.5359.1
[platform/framework/web/chromium-efl.git] / components / component_updater / BUILD.gn
1 # Copyright 2014 The Chromium Authors
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/prefs",
38     "//components/update_client",
39     "//components/version_info",
40     "//third_party/boringssl:boringssl",
41     "//ui/base",
42     "//url",
43   ]
44 }
45
46 static_library("crl_set_remover") {
47   sources = [
48     "crl_set_remover.cc",
49     "crl_set_remover.h",
50   ]
51
52   deps = [ "//base" ]
53 }
54
55 static_library("test_support") {
56   testonly = true
57   sources = [
58     "mock_component_updater_service.cc",
59     "mock_component_updater_service.h",
60   ]
61
62   public_deps = [
63     ":component_updater",
64     "//base",
65     "//testing/gmock",
66   ]
67 }
68
69 source_set("unit_tests") {
70   testonly = true
71   sources = [
72     "component_installer_unittest.cc",
73     "component_updater_service_unittest.cc",
74     "configurator_impl_unittest.cc",
75     "timer_unittest.cc",
76   ]
77
78   deps = [
79     ":component_updater",
80     "//base",
81     "//base/test:test_support",
82     "//components/crx_file",
83     "//components/prefs:test_support",
84     "//components/update_client:test_support",
85     "//services/service_manager/public/cpp",
86     "//testing/gmock",
87     "//testing/gtest",
88     "//third_party/boringssl:boringssl",
89   ]
90 }