Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(738)

Side by Side Diff: components/variations/BUILD.gn

Issue 1462953004: Unit tests for importing prefs from the Java side implemented (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added unit test check if prefs are actually empty after calling ClearJavaFirstRunPrefs() function Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 source_set("variations") { 9 source_set("variations") {
10 sources = [ 10 sources = [
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 ] 55 ]
56 56
57 if (is_android || is_ios) { 57 if (is_android || is_ios) {
58 sources += [ 58 sources += [
59 "variations_request_scheduler_mobile.cc", 59 "variations_request_scheduler_mobile.cc",
60 "variations_request_scheduler_mobile.h", 60 "variations_request_scheduler_mobile.h",
61 ] 61 ]
62 } 62 }
63 63
64 deps = [ 64 deps = [
65 "proto",
66 "//base", 65 "//base",
67 "//base:prefs", 66 "//base:prefs",
68 "//components/compression", 67 "//components/compression",
69 "//components/crash/core/common", 68 "//components/crash/core/common",
70 "//crypto", 69 "//crypto",
71 "//third_party/mt19937ar", 70 "//third_party/mt19937ar",
72 "//third_party/protobuf:protobuf_lite", 71 "//third_party/protobuf:protobuf_lite",
72 "proto",
73 ] 73 ]
74 74
75 if (is_android) { 75 if (is_android) {
76 deps += [ ":jni" ] 76 deps += [ ":jni" ]
77 } 77 }
78 } 78 }
79 79
80 if (is_android) { 80 if (is_android) {
81 # GYP: //components/variations.gypi:variations_jni_headers 81 # GYP: //components/variations.gypi:variations_jni_headers
82 generate_jni("jni") { 82 generate_jni("jni") {
83 sources = [ 83 sources = [
84 "android/java/src/org/chromium/components/variations/VariationsAssociatedD ata.java", 84 "android/java/src/org/chromium/components/variations/VariationsAssociatedD ata.java",
85 "android/java/src/org/chromium/components/variations/firstrun/VariationsSe edBridge.java", 85 "android/java/src/org/chromium/components/variations/firstrun/VariationsSe edBridge.java",
86 ] 86 ]
87 jni_package = "variations" 87 jni_package = "variations"
88 } 88 }
89 } 89 }
90 90
91 if (is_android) {
92 generate_jni("variations_jni_test_headers") {
93 sources = [
94 "android/java/src/org/chromium/components/variations/firstrun/VariationsSe edBridgeTest.java",
95 ]
96 jni_package = "variations"
97 }
98 }
99
91 source_set("unit_tests") { 100 source_set("unit_tests") {
92 testonly = true 101 testonly = true
93 sources = [ 102 sources = [
94 "active_field_trials_unittest.cc", 103 "active_field_trials_unittest.cc",
95 "caching_permuted_entropy_provider_unittest.cc", 104 "caching_permuted_entropy_provider_unittest.cc",
96 "entropy_provider_unittest.cc", 105 "entropy_provider_unittest.cc",
97 "experiment_labels_unittest.cc", 106 "experiment_labels_unittest.cc",
98 "metrics_util_unittest.cc", 107 "metrics_util_unittest.cc",
99 "net/variations_http_header_provider_unittest.cc", 108 "net/variations_http_header_provider_unittest.cc",
100 "study_filtering_unittest.cc", 109 "study_filtering_unittest.cc",
101 "variations_associated_data_unittest.cc", 110 "variations_associated_data_unittest.cc",
102 "variations_request_scheduler_unittest.cc", 111 "variations_request_scheduler_unittest.cc",
103 "variations_seed_processor_unittest.cc", 112 "variations_seed_processor_unittest.cc",
104 "variations_seed_simulator_unittest.cc", 113 "variations_seed_simulator_unittest.cc",
105 "variations_seed_store_unittest.cc", 114 "variations_seed_store_unittest.cc",
106 ] 115 ]
107 116
108 if (is_android || is_ios) { 117 if (is_android || is_ios) {
109 sources += [ "variations_request_scheduler_mobile_unittest.cc" ] 118 sources += [ "variations_request_scheduler_mobile_unittest.cc" ]
110 } 119 }
111 120
121 if (is_android) {
122 sources += [
123 "android/variations_seed_bridge_test.cc",
124 "android/variations_seed_bridge_test.h",
125 ]
126 }
127
112 deps = [ 128 deps = [
113 ":variations", 129 ":variations",
114 "net", 130 ":variations_jni_test_headers",
115 "proto",
116 "//base:prefs_test_support", 131 "//base:prefs_test_support",
117 "//base/test:test_support", 132 "//base/test:test_support",
118 "//components/compression", 133 "//components/compression",
119 "//testing/gtest", 134 "//testing/gtest",
135 "net",
136 "proto",
120 ] 137 ]
121 } 138 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698