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 } |
(...skipping 10 matching lines...) Expand all Loading... |
21 "//base", | 21 "//base", |
22 ] | 22 ] |
23 } | 23 } |
24 | 24 |
25 static_library("test_support") { | 25 static_library("test_support") { |
26 testonly = true | 26 testonly = true |
27 sources = [ | 27 sources = [ |
28 "../trace_event/trace_config_memory_test_util.h", | 28 "../trace_event/trace_config_memory_test_util.h", |
29 "android/java_handler_thread_for_testing.cc", | 29 "android/java_handler_thread_for_testing.cc", |
30 "android/java_handler_thread_for_testing.h", | 30 "android/java_handler_thread_for_testing.h", |
| 31 "android/multiprocess_test_client_service.cc", |
| 32 "android/test_support_jni_registrar.cc", |
| 33 "android/test_support_jni_registrar.h", |
31 "android/test_system_message_handler_link_android.cc", | 34 "android/test_system_message_handler_link_android.cc", |
32 "android/test_system_message_handler_link_android.h", | 35 "android/test_system_message_handler_link_android.h", |
33 "fuzzed_data_provider.cc", | 36 "fuzzed_data_provider.cc", |
34 "fuzzed_data_provider.h", | 37 "fuzzed_data_provider.h", |
35 "gtest_util.cc", | 38 "gtest_util.cc", |
36 "gtest_util.h", | 39 "gtest_util.h", |
37 "gtest_xml_unittest_result_printer.cc", | 40 "gtest_xml_unittest_result_printer.cc", |
38 "gtest_xml_unittest_result_printer.h", | 41 "gtest_xml_unittest_result_printer.h", |
39 "gtest_xml_util.cc", | 42 "gtest_xml_util.cc", |
40 "gtest_xml_util.h", | 43 "gtest_xml_util.h", |
41 "histogram_tester.cc", | 44 "histogram_tester.cc", |
42 "histogram_tester.h", | 45 "histogram_tester.h", |
43 "icu_test_util.cc", | 46 "icu_test_util.cc", |
44 "icu_test_util.h", | 47 "icu_test_util.h", |
45 "ios/wait_util.h", | 48 "ios/wait_util.h", |
46 "ios/wait_util.mm", | 49 "ios/wait_util.mm", |
47 "launcher/test_result.cc", | 50 "launcher/test_result.cc", |
48 "launcher/test_result.h", | 51 "launcher/test_result.h", |
49 "launcher/test_results_tracker.h", | 52 "launcher/test_results_tracker.h", |
50 "launcher/unit_test_launcher.h", | 53 "launcher/unit_test_launcher.h", |
51 "mock_chrome_application_mac.h", | 54 "mock_chrome_application_mac.h", |
52 "mock_chrome_application_mac.mm", | 55 "mock_chrome_application_mac.mm", |
53 "mock_devices_changed_observer.cc", | 56 "mock_devices_changed_observer.cc", |
54 "mock_devices_changed_observer.h", | 57 "mock_devices_changed_observer.h", |
55 "mock_entropy_provider.cc", | 58 "mock_entropy_provider.cc", |
56 "mock_entropy_provider.h", | 59 "mock_entropy_provider.h", |
57 "mock_log.cc", | 60 "mock_log.cc", |
58 "mock_log.h", | 61 "mock_log.h", |
| 62 "multiprocess_test.cc", |
59 "multiprocess_test.h", | 63 "multiprocess_test.h", |
| 64 "multiprocess_test_android.cc", |
60 "null_task_runner.cc", | 65 "null_task_runner.cc", |
61 "null_task_runner.h", | 66 "null_task_runner.h", |
62 "opaque_ref_counted.cc", | 67 "opaque_ref_counted.cc", |
63 "opaque_ref_counted.h", | 68 "opaque_ref_counted.h", |
64 "perf_log.cc", | 69 "perf_log.cc", |
65 "perf_log.h", | 70 "perf_log.h", |
66 "perf_test_suite.cc", | 71 "perf_test_suite.cc", |
67 "perf_test_suite.h", | 72 "perf_test_suite.h", |
68 "perf_time_logger.cc", | 73 "perf_time_logger.cc", |
69 "perf_time_logger.h", | 74 "perf_time_logger.h", |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 if (is_ios) { | 144 if (is_ios) { |
140 sources += [ "launcher/unit_test_launcher_ios.cc" ] | 145 sources += [ "launcher/unit_test_launcher_ios.cc" ] |
141 } else if (!is_nacl_nonsfi) { | 146 } else if (!is_nacl_nonsfi) { |
142 sources += [ | 147 sources += [ |
143 "launcher/test_launcher.cc", | 148 "launcher/test_launcher.cc", |
144 "launcher/test_launcher.h", | 149 "launcher/test_launcher.h", |
145 "launcher/test_launcher_tracer.cc", | 150 "launcher/test_launcher_tracer.cc", |
146 "launcher/test_launcher_tracer.h", | 151 "launcher/test_launcher_tracer.h", |
147 "launcher/test_results_tracker.cc", | 152 "launcher/test_results_tracker.cc", |
148 "launcher/unit_test_launcher.cc", | 153 "launcher/unit_test_launcher.cc", |
149 "multiprocess_test.cc", | |
150 "multiprocess_test_android.cc", | |
151 ] | 154 ] |
152 } | 155 } |
153 | 156 |
154 configs += [ "//build/config:precompiled_headers" ] | 157 configs += [ "//build/config:precompiled_headers" ] |
155 | 158 |
156 data = [ | 159 data = [ |
157 # The isolate needs this script for setting up the test. It's not actually | 160 # The isolate needs this script for setting up the test. It's not actually |
158 # needed to run this target locally. | 161 # needed to run this target locally. |
159 "//testing/test_env.py", | 162 "//testing/test_env.py", |
160 ] | 163 ] |
(...skipping 23 matching lines...) Expand all Loading... |
184 set_sources_assignment_filter([]) | 187 set_sources_assignment_filter([]) |
185 sources += [ "test_file_util_mac.cc" ] | 188 sources += [ "test_file_util_mac.cc" ] |
186 set_sources_assignment_filter(sources_assignment_filter) | 189 set_sources_assignment_filter(sources_assignment_filter) |
187 } | 190 } |
188 | 191 |
189 if (is_mac) { | 192 if (is_mac) { |
190 libs = [ "AppKit.framework" ] | 193 libs = [ "AppKit.framework" ] |
191 } | 194 } |
192 | 195 |
193 if (is_android) { | 196 if (is_android) { |
194 deps += [ ":base_unittests_jni_headers" ] | 197 deps += [ |
| 198 ":base_unittests_jni_headers", |
| 199 ":test_support_jni_headers", |
| 200 ] |
| 201 public_deps += [ ":test_support_java" ] |
195 } | 202 } |
196 | 203 |
197 if (is_nacl_nonsfi) { | 204 if (is_nacl_nonsfi) { |
198 sources += [ | 205 sources += [ |
199 "launcher/test_launcher.h", | 206 "launcher/test_launcher.h", |
200 "launcher/test_result.h", | 207 "launcher/test_result.h", |
201 "launcher/unit_test_launcher.h", | 208 "launcher/unit_test_launcher.h", |
202 "launcher/unit_test_launcher_nacl_nonsfi.cc", | 209 "launcher/unit_test_launcher_nacl_nonsfi.cc", |
203 ] | 210 ] |
204 sources -= [ | 211 sources -= [ |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 | 327 |
321 if (is_android) { | 328 if (is_android) { |
322 generate_jni("base_unittests_jni_headers") { | 329 generate_jni("base_unittests_jni_headers") { |
323 sources = [ | 330 sources = [ |
324 "android/java/src/org/chromium/base/ContentUriTestUtils.java", | 331 "android/java/src/org/chromium/base/ContentUriTestUtils.java", |
325 "android/java/src/org/chromium/base/TestSystemMessageHandler.java", | 332 "android/java/src/org/chromium/base/TestSystemMessageHandler.java", |
326 "android/java/src/org/chromium/base/TestUiThread.java", | 333 "android/java/src/org/chromium/base/TestUiThread.java", |
327 ] | 334 ] |
328 jni_package = "base" | 335 jni_package = "base" |
329 } | 336 } |
| 337 |
| 338 generate_jni("test_support_jni_headers") { |
| 339 sources = [ |
| 340 "android/java/src/org/chromium/base/MainReturnCodeResult.java", |
| 341 "android/java/src/org/chromium/base/MultiprocessTestClientLauncher.java", |
| 342 "android/java/src/org/chromium/base/MultiprocessTestClientService.java", |
| 343 ] |
| 344 jni_package = "base" |
| 345 } |
| 346 |
| 347 android_library("test_support_java") { |
| 348 testonly = true |
| 349 deps = [ |
| 350 "//base:base_java", |
| 351 ] |
| 352 srcjar_deps = [ ":test_support_java_aidl" ] |
| 353 java_files = [ |
| 354 "android/java/src/org/chromium/base/FileDescriptorInfo.java", |
| 355 "android/java/src/org/chromium/base/MainReturnCodeResult.java", |
| 356 "android/java/src/org/chromium/base/MultiprocessTestClientLauncher.java", |
| 357 "android/java/src/org/chromium/base/MultiprocessTestClientService.java", |
| 358 "android/java/src/org/chromium/base/MultiprocessTestClientService0.java", |
| 359 "android/java/src/org/chromium/base/MultiprocessTestClientService1.java", |
| 360 "android/java/src/org/chromium/base/MultiprocessTestClientService2.java", |
| 361 "android/java/src/org/chromium/base/MultiprocessTestClientService3.java", |
| 362 "android/java/src/org/chromium/base/MultiprocessTestClientService4.java", |
| 363 ] |
| 364 } |
| 365 |
| 366 android_aidl("test_support_java_aidl") { |
| 367 testonly = true |
| 368 import_include = "android/java/src" |
| 369 sources = [ |
| 370 "android/java/src/org/chromium/base/ITestClient.aidl", |
| 371 ] |
| 372 } |
330 } | 373 } |
OLD | NEW |