Roll src/third_party/WebKit 5668f22:1929caf (svn 192731:192750)
[chromium-blink-merge.git] / components / rappor / BUILD.gn
blob8bad34763dfdb8954a7c35a0060c0ebc48cc2953
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   ]
29   deps = [
30     "//base",
31     "//components/metrics",
32     "//components/rappor/proto",
33     "//components/variations",
34     "//crypto",
35     "//net",
36     "//third_party/smhasher:cityhash",
37   ]
40 # GYP version: components/rappor.gypi:rappor_test_support
41 static_library("test_support") {
42   testonly = true
43   sources = [
44     "test_log_uploader.cc",
45     "test_log_uploader.h",
46     "test_rappor_service.cc",
47     "test_rappor_service.h",
48   ]
50   deps = [
51     ":rappor",
52     "//components/rappor/proto",
53   ]
56 source_set("unit_tests") {
57   testonly = true
58   sources = [
59     "bloom_filter_unittest.cc",
60     "byte_vector_utils_unittest.cc",
61     "log_uploader_unittest.cc",
62     "rappor_metric_unittest.cc",
63     "rappor_prefs_unittest.cc",
64     "rappor_service_unittest.cc",
65     "rappor_utils_unittest.cc",
66   ]
68   deps = [
69     ":rappor",
70     "//base/test:test_support",
71     "//components/rappor/proto",
72     "//testing/gtest",
73   ]