Roll src/third_party/WebKit a1ed6cd:9e03af6 (svn 190836:190842)
[chromium-blink-merge.git] / components / rappor / BUILD.gn
blobd3b99065f13e283ca55d3659313ec72ae8040aef
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   ]
27   deps = [
28     "//base",
29     "//components/metrics",
30     "//components/rappor/proto",
31     "//components/variations",
32     "//crypto",
33     "//net",
34     "//third_party/smhasher:cityhash",
35   ]
38 # GYP version: components/rappor.gypi:rappor_test_support
39 static_library("test_support") {
40   testonly = true
41   sources = [
42     "test_log_uploader.cc",
43     "test_log_uploader.h",
44     "test_rappor_service.cc",
45     "test_rappor_service.h",
46   ]
48   deps = [
49     ":rappor",
50     "//components/rappor/proto",
51   ]
54 source_set("unit_tests") {
55   testonly = true
56   sources = [
57     "bloom_filter_unittest.cc",
58     "byte_vector_utils_unittest.cc",
59     "log_uploader_unittest.cc",
60     "rappor_metric_unittest.cc",
61     "rappor_prefs_unittest.cc",
62     "rappor_service_unittest.cc",
63   ]
65   deps = [
66     ":rappor",
67     "//base/test:test_support",
68     "//components/rappor/proto",
69     "//testing/gtest",
70   ]