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 = [ |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 if (is_android) { | 84 if (is_android) { |
85 generate_jni("jni") { | 85 generate_jni("jni") { |
86 sources = [ | 86 sources = [ |
87 "android/java/src/org/chromium/components/variations/VariationsAssociatedD
ata.java", | 87 "android/java/src/org/chromium/components/variations/VariationsAssociatedD
ata.java", |
88 "android/java/src/org/chromium/components/variations/firstrun/VariationsSe
edBridge.java", | 88 "android/java/src/org/chromium/components/variations/firstrun/VariationsSe
edBridge.java", |
89 ] | 89 ] |
90 jni_package = "variations" | 90 jni_package = "variations" |
91 } | 91 } |
92 } | 92 } |
93 | 93 |
| 94 static_library("test_support") { |
| 95 testonly = true |
| 96 sources = [ |
| 97 "variations_params_manager.cc", |
| 98 "variations_params_manager.h", |
| 99 ] |
| 100 |
| 101 public_deps = [ |
| 102 ":variations", |
| 103 ] |
| 104 |
| 105 deps = [ |
| 106 "//base/test:test_support", |
| 107 ] |
| 108 } |
| 109 |
94 source_set("unit_tests") { | 110 source_set("unit_tests") { |
95 testonly = true | 111 testonly = true |
96 sources = [ | 112 sources = [ |
97 "active_field_trials_unittest.cc", | 113 "active_field_trials_unittest.cc", |
98 "caching_permuted_entropy_provider_unittest.cc", | 114 "caching_permuted_entropy_provider_unittest.cc", |
99 "entropy_provider_unittest.cc", | 115 "entropy_provider_unittest.cc", |
100 "experiment_labels_unittest.cc", | 116 "experiment_labels_unittest.cc", |
101 "metrics_util_unittest.cc", | 117 "metrics_util_unittest.cc", |
102 "net/variations_http_headers_unittest.cc", | 118 "net/variations_http_headers_unittest.cc", |
103 "study_filtering_unittest.cc", | 119 "study_filtering_unittest.cc", |
(...skipping 13 matching lines...) Expand all Loading... |
117 ":variations", | 133 ":variations", |
118 "net", | 134 "net", |
119 "proto", | 135 "proto", |
120 "//base/test:test_support", | 136 "//base/test:test_support", |
121 "//components/prefs:test_support", | 137 "//components/prefs:test_support", |
122 "//components/variations/field_trial_config:unit_tests", | 138 "//components/variations/field_trial_config:unit_tests", |
123 "//testing/gtest", | 139 "//testing/gtest", |
124 "//third_party/zlib:compression_utils", | 140 "//third_party/zlib:compression_utils", |
125 ] | 141 ] |
126 } | 142 } |
OLD | NEW |