Complete SyncMessageFilter initialization after SyncChannel initialization
[chromium-blink-merge.git] / components / variations / BUILD.gn
blobc983be5da6ada888a240d20daafff5d85c70d165
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 if (is_android) {
6   import("//build/config/android/rules.gni")
9 source_set("variations") {
10   sources = [
11     "active_field_trials.cc",
12     "active_field_trials.h",
13     "android/component_jni_registrar.cc",
14     "android/component_jni_registrar.h",
15     "android/variations_associated_data_android.cc",
16     "android/variations_associated_data_android.h",
17     "caching_permuted_entropy_provider.cc",
18     "caching_permuted_entropy_provider.h",
19     "entropy_provider.cc",
20     "entropy_provider.h",
21     "metrics_util.cc",
22     "metrics_util.h",
23     "pref_names.cc",
24     "pref_names.h",
25     "processed_study.cc",
26     "processed_study.h",
27     "proto/client_variations.proto",
28     "proto/permuted_entropy_cache.proto",
29     "proto/study.proto",
30     "proto/variations_seed.proto",
31     "study_filtering.cc",
32     "study_filtering.h",
33     "variations_associated_data.cc",
34     "variations_associated_data.h",
35     "variations_seed_processor.cc",
36     "variations_seed_processor.h",
37     "variations_seed_simulator.cc",
38     "variations_seed_simulator.h",
39     "variations_url_constants.cc",
40     "variations_url_constants.h",
41   ]
43   deps = [
44     "proto",
45     "//base",
46     "//base:prefs",
47     "//third_party/mt19937ar",
48   ]
50   if (is_android) {
51     deps += [ ":jni" ]
52   }
55 if (is_android) {
56   # GYP: //components/variations.gypi:variations_jni_headers
57   generate_jni("jni") {
58     sources = [
59       "android/java/src/org/chromium/components/variations/VariationsAssociatedData.java",
60     ]
61     jni_package = "variations"
62   }
65 source_set("unit_tests") {
66   testonly = true
67   sources = [
68     "active_field_trials_unittest.cc",
69     "caching_permuted_entropy_provider_unittest.cc",
70     "entropy_provider_unittest.cc",
71     "metrics_util_unittest.cc",
72     "net/variations_http_header_provider_unittest.cc",
73     "study_filtering_unittest.cc",
74     "variations_associated_data_unittest.cc",
75     "variations_seed_processor_unittest.cc",
76     "variations_seed_simulator_unittest.cc",
77   ]
79   deps = [
80     ":variations",
81     "net",
82     "proto",
83     "//base:prefs_test_support",
84     "//base/test:test_support",
85     "//testing/gtest",
86   ]