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

Side by Side Diff: base/test/BUILD.gn

Issue 547793002: Add lots of testonly annotations to the GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 years, 3 months 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
« no previous file with comments | « base/BUILD.gn ('k') | cc/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 import("//build/config/ui.gni") 5 import("//build/config/ui.gni")
6 6
7 if (is_android) { 7 if (is_android) {
8 import("//build/config/android/rules.gni") 8 import("//build/config/android/rules.gni")
9 } 9 }
10 10
11 source_set("test_support") { 11 source_set("test_support") {
12 testonly = true
12 sources = [ 13 sources = [
13 "expectations/expectation.cc", 14 "expectations/expectation.cc",
14 "expectations/expectation.h", 15 "expectations/expectation.h",
15 "expectations/parser.cc", 16 "expectations/parser.cc",
16 "expectations/parser.h", 17 "expectations/parser.h",
17 "gtest_xml_util.cc", 18 "gtest_xml_util.cc",
18 "gtest_xml_util.h", 19 "gtest_xml_util.h",
19 "histogram_tester.cc", 20 "histogram_tester.cc",
20 "histogram_tester.h", 21 "histogram_tester.h",
21 "launcher/test_launcher.cc", 22 "launcher/test_launcher.cc",
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 if (is_android) { 128 if (is_android) {
128 deps += [ ":base_unittests_jni_headers" ] 129 deps += [ ":base_unittests_jni_headers" ]
129 } 130 }
130 } 131 }
131 132
132 config("perf_test_config") { 133 config("perf_test_config") {
133 defines = [ "PERF_TEST" ] 134 defines = [ "PERF_TEST" ]
134 } 135 }
135 136
136 source_set("test_support_perf") { 137 source_set("test_support_perf") {
138 testonly = true
137 sources = [ 139 sources = [
138 "run_all_perftests.cc", 140 "run_all_perftests.cc",
139 ] 141 ]
140 deps = [ 142 deps = [
141 ":test_support", 143 ":test_support",
142 "//base", 144 "//base",
143 "//testing/gtest", 145 "//testing/gtest",
144 ] 146 ]
145 147
146 direct_dependent_configs = [ ":perf_test_config" ] 148 direct_dependent_configs = [ ":perf_test_config" ]
147 } 149 }
148 150
149 source_set("run_all_unittests") { 151 source_set("run_all_unittests") {
152 testonly = true
150 sources = [ 153 sources = [
151 "run_all_unittests.cc", 154 "run_all_unittests.cc",
152 ] 155 ]
153 deps = [ 156 deps = [
154 ":test_support", 157 ":test_support",
155 ] 158 ]
156 } 159 }
157 160
158 if (is_android) { 161 if (is_android) {
159 generate_jni("base_unittests_jni_headers") { 162 generate_jni("base_unittests_jni_headers") {
160 sources = [ 163 sources = [
161 "android/java/src/org/chromium/base/ContentUriTestUtils.java", 164 "android/java/src/org/chromium/base/ContentUriTestUtils.java",
162 ] 165 ]
163 jni_package = "base" 166 jni_package = "base"
164 } 167 }
165 } 168 }
OLDNEW
« no previous file with comments | « base/BUILD.gn ('k') | cc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698