Upload upstream chromium 85.0.4183.84
[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/crx_file",
34     "//components/update_client",
35     "//components/version_info",
36     "//third_party/boringssl:boringssl",
37     "//ui/base",
38     "//url",
39   ]
40 }
41
42 static_library("crl_set_remover") {
43   sources = [
44     "crl_set_remover.cc",
45     "crl_set_remover.h",
46   ]
47
48   deps = [ "//base" ]
49 }
50
51 static_library("test_support") {
52   testonly = true
53   sources = [
54     "mock_component_updater_service.cc",
55     "mock_component_updater_service.h",
56   ]
57
58   public_deps = [
59     ":component_updater",
60     "//base",
61     "//testing/gmock",
62   ]
63 }
64
65 source_set("unit_tests") {
66   testonly = true
67   sources = [
68     "component_installer_unittest.cc",
69     "component_updater_service_unittest.cc",
70     "configurator_impl_unittest.cc",
71     "timer_unittest.cc",
72   ]
73
74   deps = [
75     ":component_updater",
76     "//base",
77     "//base/test:test_support",
78     "//components/crx_file",
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 }