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