Cleanup: Pass std::string as const reference from pdf/
[chromium-blink-merge.git] / components / rappor / BUILD.gn
blob2a98041abe9b76ac93c538a89526f1f7607880ac
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.
5 # GYP version: components/rappor.gypi:rappor
6 source_set("rappor") {
7   sources = [
8     "bloom_filter.cc",
9     "bloom_filter.h",
10     "byte_vector_utils.cc",
11     "byte_vector_utils.h",
12     "log_uploader.cc",
13     "log_uploader.h",
14     "log_uploader_interface.h",
15     "rappor_metric.cc",
16     "rappor_metric.h",
17     "rappor_parameters.cc",
18     "rappor_parameters.h",
19     "rappor_pref_names.cc",
20     "rappor_pref_names.h",
21     "rappor_prefs.cc",
22     "rappor_prefs.h",
23     "rappor_service.cc",
24     "rappor_service.h",
25     "rappor_utils.cc",
26     "rappor_utils.h",
27     "reports.cc",
28     "reports.h",
29     "sample.cc",
30     "sample.h",
31     "sampler.cc",
32     "sampler.h",
33   ]
35   deps = [
36     "//base",
37     "//components/data_use_measurement/core",
38     "//components/metrics",
39     "//components/rappor/proto",
40     "//components/variations",
41     "//crypto",
42     "//net",
43     "//third_party/smhasher:cityhash",
44   ]
47 # GYP version: components/rappor.gypi:rappor_test_support
48 static_library("test_support") {
49   testonly = true
50   sources = [
51     "test_log_uploader.cc",
52     "test_log_uploader.h",
53     "test_rappor_service.cc",
54     "test_rappor_service.h",
55   ]
57   deps = [
58     ":rappor",
59     "//components/rappor/proto",
60   ]
63 source_set("unit_tests") {
64   testonly = true
65   sources = [
66     "bloom_filter_unittest.cc",
67     "byte_vector_utils_unittest.cc",
68     "log_uploader_unittest.cc",
69     "rappor_metric_unittest.cc",
70     "rappor_prefs_unittest.cc",
71     "rappor_service_unittest.cc",
72     "rappor_utils_unittest.cc",
73     "sampler_unittest.cc",
74   ]
76   deps = [
77     ":rappor",
78     "//base/test:test_support",
79     "//components/rappor/proto",
80     "//testing/gtest",
81   ]