1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
if (is_android) {
import("//build/config/android/rules.gni")
}
source_set("variations") {
sources = [
"active_field_trials.cc",
"active_field_trials.h",
"android/component_jni_registrar.cc",
"android/component_jni_registrar.h",
"android/variations_associated_data_android.cc",
"android/variations_associated_data_android.h",
"android/variations_seed_bridge.cc",
"android/variations_seed_bridge.h",
"caching_permuted_entropy_provider.cc",
"caching_permuted_entropy_provider.h",
"entropy_provider.cc",
"entropy_provider.h",
"experiment_labels.cc",
"experiment_labels.h",
"metrics_util.cc",
"metrics_util.h",
"pref_names.cc",
"pref_names.h",
"processed_study.cc",
"processed_study.h",
"proto/client_variations.proto",
"proto/permuted_entropy_cache.proto",
"proto/study.proto",
"proto/variations_seed.proto",
"study_filtering.cc",
"study_filtering.h",
"synthetic_trials.cc",
"synthetic_trials.h",
"variations_associated_data.cc",
"variations_associated_data.h",
"variations_experiment_util.cc",
"variations_experiment_util.h",
"variations_http_header_provider.cc",
"variations_http_header_provider.h",
"variations_request_scheduler.cc",
"variations_request_scheduler.h",
"variations_seed_processor.cc",
"variations_seed_processor.h",
"variations_seed_simulator.cc",
"variations_seed_simulator.h",
"variations_seed_store.cc",
"variations_seed_store.h",
"variations_switches.cc",
"variations_switches.h",
"variations_url_constants.cc",
"variations_url_constants.h",
"variations_util.cc",
"variations_util.h",
]
if (is_android || is_ios) {
sources += [
"variations_request_scheduler_mobile.cc",
"variations_request_scheduler_mobile.h",
]
}
deps = [
"proto",
"//base",
"//base:prefs",
"//components/crash/core/common",
"//crypto",
"//third_party/mt19937ar",
"//third_party/protobuf:protobuf_lite",
"//third_party/zlib:compression_utils",
]
if (is_android) {
deps += [ ":jni" ]
}
}
if (is_android) {
# GYP: //components/variations.gypi:variations_jni_headers
generate_jni("jni") {
sources = [
"android/java/src/org/chromium/components/variations/VariationsAssociatedData.java",
"android/java/src/org/chromium/components/variations/firstrun/VariationsSeedBridge.java",
]
jni_package = "variations"
}
}
source_set("unit_tests") {
testonly = true
sources = [
"active_field_trials_unittest.cc",
"caching_permuted_entropy_provider_unittest.cc",
"entropy_provider_unittest.cc",
"experiment_labels_unittest.cc",
"metrics_util_unittest.cc",
"net/variations_http_headers_unittest.cc",
"study_filtering_unittest.cc",
"variations_associated_data_unittest.cc",
"variations_http_header_provider_unittest.cc",
"variations_request_scheduler_unittest.cc",
"variations_seed_processor_unittest.cc",
"variations_seed_simulator_unittest.cc",
"variations_seed_store_unittest.cc",
]
if (is_android || is_ios) {
sources += [ "variations_request_scheduler_mobile_unittest.cc" ]
}
deps = [
":variations",
"net",
"proto",
"//base:prefs_test_support",
"//base/test:test_support",
"//testing/gtest",
"//third_party/zlib:compression_utils",
]
}
|