OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 if (is_android) { | 5 if (is_android) { |
6 import("//build/config/android/rules.gni") | 6 import("//build/config/android/rules.gni") |
7 } | 7 } |
8 | 8 |
9 static_library("variations") { | 9 static_library("variations") { |
10 sources = [ | 10 sources = [ |
11 "active_field_trials.cc", | 11 "active_field_trials.cc", |
12 "active_field_trials.h", | 12 "active_field_trials.h", |
13 "android/component_jni_registrar.cc", | 13 "android/component_jni_registrar.cc", |
14 "android/component_jni_registrar.h", | 14 "android/component_jni_registrar.h", |
15 "android/variations_associated_data_android.cc", | 15 "android/variations_associated_data_android.cc", |
16 "android/variations_associated_data_android.h", | 16 "android/variations_associated_data_android.h", |
17 "android/variations_seed_bridge.cc", | 17 "android/variations_seed_bridge.cc", |
18 "android/variations_seed_bridge.h", | 18 "android/variations_seed_bridge.h", |
19 "caching_permuted_entropy_provider.cc", | 19 "caching_permuted_entropy_provider.cc", |
20 "caching_permuted_entropy_provider.h", | 20 "caching_permuted_entropy_provider.h", |
| 21 "child_process_field_trial_syncer.cc", |
| 22 "child_process_field_trial_syncer.h", |
21 "entropy_provider.cc", | 23 "entropy_provider.cc", |
22 "entropy_provider.h", | 24 "entropy_provider.h", |
23 "experiment_labels.cc", | 25 "experiment_labels.cc", |
24 "experiment_labels.h", | 26 "experiment_labels.h", |
25 "metrics_util.cc", | 27 "metrics_util.cc", |
26 "metrics_util.h", | 28 "metrics_util.h", |
27 "pref_names.cc", | 29 "pref_names.cc", |
28 "pref_names.h", | 30 "pref_names.h", |
29 "processed_study.cc", | 31 "processed_study.cc", |
30 "processed_study.h", | 32 "processed_study.h", |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 ] | 91 ] |
90 jni_package = "variations" | 92 jni_package = "variations" |
91 } | 93 } |
92 } | 94 } |
93 | 95 |
94 source_set("unit_tests") { | 96 source_set("unit_tests") { |
95 testonly = true | 97 testonly = true |
96 sources = [ | 98 sources = [ |
97 "active_field_trials_unittest.cc", | 99 "active_field_trials_unittest.cc", |
98 "caching_permuted_entropy_provider_unittest.cc", | 100 "caching_permuted_entropy_provider_unittest.cc", |
| 101 "child_process_field_trial_syncer_unittest.cc", |
99 "entropy_provider_unittest.cc", | 102 "entropy_provider_unittest.cc", |
100 "experiment_labels_unittest.cc", | 103 "experiment_labels_unittest.cc", |
101 "metrics_util_unittest.cc", | 104 "metrics_util_unittest.cc", |
102 "net/variations_http_headers_unittest.cc", | 105 "net/variations_http_headers_unittest.cc", |
103 "study_filtering_unittest.cc", | 106 "study_filtering_unittest.cc", |
104 "variations_associated_data_unittest.cc", | 107 "variations_associated_data_unittest.cc", |
105 "variations_http_header_provider_unittest.cc", | 108 "variations_http_header_provider_unittest.cc", |
106 "variations_request_scheduler_unittest.cc", | 109 "variations_request_scheduler_unittest.cc", |
107 "variations_seed_processor_unittest.cc", | 110 "variations_seed_processor_unittest.cc", |
108 "variations_seed_simulator_unittest.cc", | 111 "variations_seed_simulator_unittest.cc", |
109 "variations_seed_store_unittest.cc", | 112 "variations_seed_store_unittest.cc", |
110 ] | 113 ] |
111 | 114 |
112 if (is_android || is_ios) { | 115 if (is_android || is_ios) { |
113 sources += [ "variations_request_scheduler_mobile_unittest.cc" ] | 116 sources += [ "variations_request_scheduler_mobile_unittest.cc" ] |
114 } | 117 } |
115 | 118 |
116 deps = [ | 119 deps = [ |
117 ":variations", | 120 ":variations", |
118 "net", | 121 "net", |
119 "proto", | 122 "proto", |
120 "//base/test:test_support", | 123 "//base/test:test_support", |
121 "//components/prefs:test_support", | 124 "//components/prefs:test_support", |
122 "//components/variations/field_trial_config:unit_tests", | 125 "//components/variations/field_trial_config:unit_tests", |
123 "//testing/gtest", | 126 "//testing/gtest", |
124 "//third_party/zlib:compression_utils", | 127 "//third_party/zlib:compression_utils", |
125 ] | 128 ] |
126 } | 129 } |
OLD | NEW |