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