OLD | NEW |
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 static_library("test_config") { | 12 static_library("test_config") { |
13 testonly = true | 13 testonly = true |
14 sources = [ | 14 sources = [ |
15 "test_switches.cc", | 15 "test_switches.cc", |
16 "test_switches.h", | 16 "test_switches.h", |
17 "test_timeouts.cc", | 17 "test_timeouts.cc", |
18 "test_timeouts.h", | 18 "test_timeouts.h", |
19 ] | 19 ] |
20 deps = [ | 20 deps = [ |
21 "//base", | 21 "//base", |
22 ] | 22 ] |
23 } | 23 } |
24 | 24 |
25 # GYP: //base/base.gyp:test_support_base | 25 # GYP: //base/base.gyp:test_support_base |
26 static_library("test_support") { | 26 static_library("test_support") { |
27 testonly = true | 27 testonly = true |
28 sources = [ | 28 sources = [ |
29 "../trace_event/trace_config_memory_test_util.h", | 29 "../trace_event/trace_config_memory_test_util.h", |
| 30 "android/java_handler_thread_for_testing.cc", |
| 31 "android/java_handler_thread_for_testing.h", |
| 32 "android/test_system_message_handler_link_android.cc", |
| 33 "android/test_system_message_handler_link_android.h", |
30 "gtest_util.cc", | 34 "gtest_util.cc", |
31 "gtest_util.h", | 35 "gtest_util.h", |
32 "gtest_xml_unittest_result_printer.cc", | 36 "gtest_xml_unittest_result_printer.cc", |
33 "gtest_xml_unittest_result_printer.h", | 37 "gtest_xml_unittest_result_printer.h", |
34 "gtest_xml_util.cc", | 38 "gtest_xml_util.cc", |
35 "gtest_xml_util.h", | 39 "gtest_xml_util.h", |
36 "histogram_tester.cc", | 40 "histogram_tester.cc", |
37 "histogram_tester.h", | 41 "histogram_tester.h", |
38 "icu_test_util.cc", | 42 "icu_test_util.cc", |
39 "icu_test_util.h", | 43 "icu_test_util.h", |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 static_library("run_all_unittests") { | 258 static_library("run_all_unittests") { |
255 testonly = true | 259 testonly = true |
256 sources = [ | 260 sources = [ |
257 "run_all_unittests.cc", | 261 "run_all_unittests.cc", |
258 ] | 262 ] |
259 deps = [ | 263 deps = [ |
260 ":test_support", | 264 ":test_support", |
261 ] | 265 ] |
262 } | 266 } |
263 | 267 |
| 268 static_library("run_all_base_unittests") { |
| 269 # Only targets in base should depend on this, targets outside base |
| 270 # should depend on run_all_unittests above. |
| 271 visibility = [ "//base/*" ] |
| 272 testonly = true |
| 273 sources = [ |
| 274 "run_all_base_unittests.cc", |
| 275 ] |
| 276 deps = [ |
| 277 ":test_support", |
| 278 ] |
| 279 } |
| 280 |
264 if (is_linux) { | 281 if (is_linux) { |
265 shared_library("malloc_wrapper") { | 282 shared_library("malloc_wrapper") { |
266 testonly = true | 283 testonly = true |
267 sources = [ | 284 sources = [ |
268 "malloc_wrapper.cc", | 285 "malloc_wrapper.cc", |
269 ] | 286 ] |
270 deps = [ | 287 deps = [ |
271 "//base", | 288 "//base", |
272 "//build/config/sanitizers:deps", | 289 "//build/config/sanitizers:deps", |
273 ] | 290 ] |
274 } | 291 } |
275 } | 292 } |
276 | 293 |
277 if (is_android) { | 294 if (is_android) { |
278 generate_jni("base_unittests_jni_headers") { | 295 generate_jni("base_unittests_jni_headers") { |
279 sources = [ | 296 sources = [ |
280 "android/java/src/org/chromium/base/ContentUriTestUtils.java", | 297 "android/java/src/org/chromium/base/ContentUriTestUtils.java", |
| 298 "android/java/src/org/chromium/base/TestSystemMessageHandler.java", |
281 "android/java/src/org/chromium/base/TestUiThread.java", | 299 "android/java/src/org/chromium/base/TestUiThread.java", |
282 ] | 300 ] |
283 jni_package = "base" | 301 jni_package = "base" |
284 } | 302 } |
285 } | 303 } |
OLD | NEW |