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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
# Copyright 2014 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.
import("//testing/test.gni")
static_library("rappor") {
sources = [
"bloom_filter.cc",
"bloom_filter.h",
"byte_vector_utils.cc",
"byte_vector_utils.h",
"log_uploader.cc",
"log_uploader.h",
"log_uploader_interface.h",
"rappor_metric.cc",
"rappor_metric.h",
"rappor_parameters.cc",
"rappor_pref_names.cc",
"rappor_pref_names.h",
"rappor_prefs.cc",
"rappor_prefs.h",
"rappor_service_impl.cc",
"rappor_service_impl.h",
"rappor_utils.cc",
"reports.cc",
"reports.h",
"sample.cc",
"sampler.cc",
"sampler.h",
]
public_deps = [
"//components/rappor/proto",
"//components/rappor/public",
]
deps = [
"//base",
"//components/data_use_measurement/core",
"//components/metrics",
"//components/prefs",
"//components/variations",
"//crypto",
"//net",
"//third_party/smhasher:cityhash",
]
}
static_library("rappor_recorder") {
sources = [
"rappor_recorder_impl.cc",
"rappor_recorder_impl.h",
]
public_deps = [
"//base",
"//components/rappor/public/interfaces",
]
deps = [
":rappor",
"//mojo/public/cpp/bindings",
]
}
static_library("test_support") {
testonly = true
sources = [
"test_log_uploader.cc",
"test_log_uploader.h",
"test_rappor_service.cc",
"test_rappor_service.h",
]
public_deps = [
":rappor",
]
deps = [
"//base",
"//components/prefs:test_support",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"bloom_filter_unittest.cc",
"byte_vector_utils_unittest.cc",
"log_uploader_unittest.cc",
"rappor_metric_unittest.cc",
"rappor_prefs_unittest.cc",
"rappor_service_unittest.cc",
"rappor_utils_unittest.cc",
"reports_unittest.cc",
"sampler_unittest.cc",
]
deps = [
":rappor",
":test_support",
"//base",
"//base/test:test_support",
"//components/metrics",
"//components/prefs:test_support",
"//net:test_support",
"//testing/gtest",
"//url",
]
}
# Convenience testing target
test("rappor_unittests") {
sources = [
"//components/test/run_all_unittests.cc",
]
deps = [
":unit_tests",
"//components/test:test_support",
]
}
|