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

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

Issue 1758653004: [GN] Set testonly unconditionally. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | build/secondary/testing/gmock/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 import("//build/config/nacl/config.gni") 6 import("//build/config/nacl/config.gni")
7 7
8 if (is_android) { 8 if (is_android) {
9 import("//build/config/android/rules.gni") 9 import("//build/config/android/rules.gni")
10 } 10 }
11 11
12 source_set("test_config") { 12 source_set("test_config") {
13 # TODO http://crbug.com/412064 enable this flag all the time. 13 testonly = true
14 testonly = !is_component_build
15 sources = [ 14 sources = [
16 "test_switches.cc", 15 "test_switches.cc",
17 "test_switches.h", 16 "test_switches.h",
18 "test_timeouts.cc", 17 "test_timeouts.cc",
19 "test_timeouts.h", 18 "test_timeouts.h",
20 ] 19 ]
21 deps = [ 20 deps = [
22 "//base", 21 "//base",
23 ] 22 ]
24 } 23 }
25 24
26 # GYP: //base/base.gyp:test_support_base 25 # GYP: //base/base.gyp:test_support_base
27 source_set("test_support") { 26 source_set("test_support") {
28 # TODO http://crbug.com/412064 enable this flag all the time. 27 testonly = true
29 testonly = !is_component_build
30 sources = [ 28 sources = [
31 "gtest_util.cc", 29 "gtest_util.cc",
32 "gtest_util.h", 30 "gtest_util.h",
33 "gtest_xml_unittest_result_printer.cc", 31 "gtest_xml_unittest_result_printer.cc",
34 "gtest_xml_unittest_result_printer.h", 32 "gtest_xml_unittest_result_printer.h",
35 "gtest_xml_util.cc", 33 "gtest_xml_util.cc",
36 "gtest_xml_util.h", 34 "gtest_xml_util.h",
37 "histogram_tester.cc", 35 "histogram_tester.cc",
38 "histogram_tester.h", 36 "histogram_tester.h",
39 "ios/wait_util.h", 37 "ios/wait_util.h",
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 256
259 if (is_android) { 257 if (is_android) {
260 generate_jni("base_unittests_jni_headers") { 258 generate_jni("base_unittests_jni_headers") {
261 sources = [ 259 sources = [
262 "android/java/src/org/chromium/base/ContentUriTestUtils.java", 260 "android/java/src/org/chromium/base/ContentUriTestUtils.java",
263 "android/java/src/org/chromium/base/TestUiThread.java", 261 "android/java/src/org/chromium/base/TestUiThread.java",
264 ] 262 ]
265 jni_package = "base" 263 jni_package = "base"
266 } 264 }
267 } 265 }
OLDNEW
« no previous file with comments | « no previous file | build/secondary/testing/gmock/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698