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

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

Issue 2611323002: Relanding "Multiprocess test client: Android child process launcher rework." (Closed)
Patch Set: Addressed nyquist@'s comment + sync Created 3 years, 11 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
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 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 "launcher/test_results_tracker.h", 49 "launcher/test_results_tracker.h",
50 "launcher/unit_test_launcher.h", 50 "launcher/unit_test_launcher.h",
51 "mock_chrome_application_mac.h", 51 "mock_chrome_application_mac.h",
52 "mock_chrome_application_mac.mm", 52 "mock_chrome_application_mac.mm",
53 "mock_devices_changed_observer.cc", 53 "mock_devices_changed_observer.cc",
54 "mock_devices_changed_observer.h", 54 "mock_devices_changed_observer.h",
55 "mock_entropy_provider.cc", 55 "mock_entropy_provider.cc",
56 "mock_entropy_provider.h", 56 "mock_entropy_provider.h",
57 "mock_log.cc", 57 "mock_log.cc",
58 "mock_log.h", 58 "mock_log.h",
59 "multiprocess_test.cc",
59 "multiprocess_test.h", 60 "multiprocess_test.h",
61 "multiprocess_test_android.cc",
60 "null_task_runner.cc", 62 "null_task_runner.cc",
61 "null_task_runner.h", 63 "null_task_runner.h",
62 "opaque_ref_counted.cc", 64 "opaque_ref_counted.cc",
63 "opaque_ref_counted.h", 65 "opaque_ref_counted.h",
64 "perf_log.cc", 66 "perf_log.cc",
65 "perf_log.h", 67 "perf_log.h",
66 "perf_test_suite.cc", 68 "perf_test_suite.cc",
67 "perf_test_suite.h", 69 "perf_test_suite.h",
68 "perf_time_logger.cc", 70 "perf_time_logger.cc",
69 "perf_time_logger.h", 71 "perf_time_logger.h",
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 if (is_ios) { 143 if (is_ios) {
142 sources += [ "launcher/unit_test_launcher_ios.cc" ] 144 sources += [ "launcher/unit_test_launcher_ios.cc" ]
143 } else if (!is_nacl_nonsfi) { 145 } else if (!is_nacl_nonsfi) {
144 sources += [ 146 sources += [
145 "launcher/test_launcher.cc", 147 "launcher/test_launcher.cc",
146 "launcher/test_launcher.h", 148 "launcher/test_launcher.h",
147 "launcher/test_launcher_tracer.cc", 149 "launcher/test_launcher_tracer.cc",
148 "launcher/test_launcher_tracer.h", 150 "launcher/test_launcher_tracer.h",
149 "launcher/test_results_tracker.cc", 151 "launcher/test_results_tracker.cc",
150 "launcher/unit_test_launcher.cc", 152 "launcher/unit_test_launcher.cc",
151 "multiprocess_test.cc",
152 "multiprocess_test_android.cc",
153 ] 153 ]
154 } 154 }
155 155
156 configs += [ "//build/config:precompiled_headers" ] 156 configs += [ "//build/config:precompiled_headers" ]
157 157
158 data = [ 158 data = [
159 # The isolate needs this script for setting up the test. It's not actually 159 # The isolate needs this script for setting up the test. It's not actually
160 # needed to run this target locally. 160 # needed to run this target locally.
161 "//testing/test_env.py", 161 "//testing/test_env.py",
162 ] 162 ]
(...skipping 23 matching lines...) Expand all
186 set_sources_assignment_filter([]) 186 set_sources_assignment_filter([])
187 sources += [ "test_file_util_mac.cc" ] 187 sources += [ "test_file_util_mac.cc" ]
188 set_sources_assignment_filter(sources_assignment_filter) 188 set_sources_assignment_filter(sources_assignment_filter)
189 } 189 }
190 190
191 if (is_mac) { 191 if (is_mac) {
192 libs = [ "AppKit.framework" ] 192 libs = [ "AppKit.framework" ]
193 } 193 }
194 194
195 if (is_android) { 195 if (is_android) {
196 deps += [ ":base_unittests_jni_headers" ] 196 deps += [
197 ":base_unittests_jni_headers",
198 ":test_support_jni_headers",
199 ]
200 public_deps += [ ":test_support_java" ]
197 } 201 }
198 202
199 if (is_nacl_nonsfi) { 203 if (is_nacl_nonsfi) {
200 sources += [ 204 sources += [
201 "launcher/test_launcher.h", 205 "launcher/test_launcher.h",
202 "launcher/test_result.h", 206 "launcher/test_result.h",
203 "launcher/unit_test_launcher.h", 207 "launcher/unit_test_launcher.h",
204 "launcher/unit_test_launcher_nacl_nonsfi.cc", 208 "launcher/unit_test_launcher_nacl_nonsfi.cc",
205 ] 209 ]
206 sources -= [ 210 sources -= [
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 326
323 if (is_android) { 327 if (is_android) {
324 generate_jni("base_unittests_jni_headers") { 328 generate_jni("base_unittests_jni_headers") {
325 sources = [ 329 sources = [
326 "android/java/src/org/chromium/base/ContentUriTestUtils.java", 330 "android/java/src/org/chromium/base/ContentUriTestUtils.java",
327 "android/java/src/org/chromium/base/TestSystemMessageHandler.java", 331 "android/java/src/org/chromium/base/TestSystemMessageHandler.java",
328 "android/java/src/org/chromium/base/TestUiThread.java", 332 "android/java/src/org/chromium/base/TestUiThread.java",
329 ] 333 ]
330 jni_package = "base" 334 jni_package = "base"
331 } 335 }
336
337 generate_jni("test_support_jni_headers") {
338 sources = [
339 "android/java/src/org/chromium/base/MainReturnCodeResult.java",
340 "android/java/src/org/chromium/base/MultiprocessTestClientLauncher.java",
341 ]
342 jni_package = "base"
343 }
344
345 android_library("test_support_java") {
346 testonly = true
347 deps = [
348 "//base:base_java",
349 "//testing/android/native_test:native_main_runner_java",
350 "//third_party/android_tools:android_support_annotations_java",
351 "//third_party/jsr-305:jsr_305_javalib",
352 ]
353 srcjar_deps = [ ":test_support_java_aidl" ]
354 java_files = [
355 "android/java/src/org/chromium/base/FileDescriptorInfo.java",
356 "android/java/src/org/chromium/base/MainReturnCodeResult.java",
357 "android/java/src/org/chromium/base/MultiprocessTestClientLauncher.java",
358 "android/java/src/org/chromium/base/MultiprocessTestClientService.java",
359 "android/java/src/org/chromium/base/MultiprocessTestClientService0.java",
360 "android/java/src/org/chromium/base/MultiprocessTestClientService1.java",
361 "android/java/src/org/chromium/base/MultiprocessTestClientService2.java",
362 "android/java/src/org/chromium/base/MultiprocessTestClientService3.java",
363 "android/java/src/org/chromium/base/MultiprocessTestClientService4.java",
364 ]
365 }
366
367 android_aidl("test_support_java_aidl") {
368 testonly = true
369 import_include = "android/java/src"
370 sources = [
371 "android/java/src/org/chromium/base/ITestClient.aidl",
372 ]
373 }
332 } 374 }
OLDNEW
« no previous file with comments | « base/process/process_win.cc ('k') | base/test/android/java/src/org/chromium/base/FileDescriptorInfo.aidl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698