Extension syncing: Introduce a NeedsSync pref
[chromium-blink-merge.git] / components / rappor / BUILD.gn
blob416d69cdabf2b221f6fe0ef7792f18f858437ed1
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 static_library("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/metrics",
38     "//components/rappor/proto",
39     "//components/variations",
40     "//crypto",
41     "//net",
42     "//third_party/smhasher:cityhash",
43   ]
46 # GYP version: components/rappor.gypi:rappor_test_support
47 static_library("test_support") {
48   testonly = true
49   sources = [
50     "test_log_uploader.cc",
51     "test_log_uploader.h",
52     "test_rappor_service.cc",
53     "test_rappor_service.h",
54   ]
56   deps = [
57     ":rappor",
58     "//components/rappor/proto",
59   ]
62 source_set("unit_tests") {
63   testonly = true
64   sources = [
65     "bloom_filter_unittest.cc",
66     "byte_vector_utils_unittest.cc",
67     "log_uploader_unittest.cc",
68     "rappor_metric_unittest.cc",
69     "rappor_prefs_unittest.cc",
70     "rappor_service_unittest.cc",
71     "rappor_utils_unittest.cc",
72     "sampler_unittest.cc",
73   ]
75   deps = [
76     ":rappor",
77     "//base/test:test_support",
78     "//components/rappor/proto",
79     "//testing/gtest",
80   ]