1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
static_library("enterprise") {
sources = [
"browser/controller/browser_dm_token_storage.cc",
"browser/controller/browser_dm_token_storage.h",
"browser/controller/chrome_browser_cloud_management_helper.cc",
"browser/controller/chrome_browser_cloud_management_helper.h",
"browser/enterprise_switches.cc",
"browser/enterprise_switches.h",
"browser/reporting/common_pref_names.cc",
"browser/reporting/common_pref_names.h",
]
deps = [
"//base",
"//components/policy/core/common",
"//components/prefs",
"//services/network/public/cpp",
]
if (!is_android) {
sources += [
"browser/reporting/browser_report_generator.cc",
"browser/reporting/browser_report_generator.h",
"browser/reporting/policy_info.cc",
"browser/reporting/policy_info.h",
"browser/reporting/profile_report_generator.cc",
"browser/reporting/profile_report_generator.h",
"browser/reporting/report_generator.cc",
"browser/reporting/report_generator.h",
"browser/reporting/report_request_definition.h",
"browser/reporting/report_request_queue_generator.cc",
"browser/reporting/report_request_queue_generator.h",
"browser/reporting/report_scheduler.cc",
"browser/reporting/report_scheduler.h",
"browser/reporting/report_type.h",
"browser/reporting/report_uploader.cc",
"browser/reporting/report_uploader.h",
"browser/reporting/reporting_delegate_factory.h",
]
deps += [
"//base/util/timer",
"//components/policy/core/browser",
"//components/policy/proto",
"//components/strings",
"//components/version_info",
"//net",
]
}
if (!is_android && !is_chromeos) {
sources += [
"browser/controller/chrome_browser_cloud_management_controller.cc",
"browser/controller/chrome_browser_cloud_management_controller.h",
]
}
}
static_library("test_support") {
testonly = true
sources = [
"browser/controller/fake_browser_dm_token_storage.cc",
"browser/controller/fake_browser_dm_token_storage.h",
]
deps = [
":enterprise",
"//base",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "browser/controller/browser_dm_token_storage_unittest.cc" ]
deps = [
":enterprise",
":test_support",
"//base",
"//base/test:test_support",
"//testing/gmock",
"//testing/gtest",
]
if (!is_android) {
sources += [ "browser/reporting/report_uploader_unittest.cc" ]
deps += [ "//components/policy/core/common:test_support" ]
}
}
|