Index: base/test/BUILD.gn |
diff --git a/base/test/BUILD.gn b/base/test/BUILD.gn |
index 8df234189abc1ea69425e6bae08c3e5f88f69fb4..7e694fb0f246ff07ab25cea592d6ebd4044e8080 100644 |
--- a/base/test/BUILD.gn |
+++ b/base/test/BUILD.gn |
@@ -28,6 +28,9 @@ static_library("test_support") { |
"../trace_event/trace_config_memory_test_util.h", |
"android/java_handler_thread_for_testing.cc", |
"android/java_handler_thread_for_testing.h", |
+ "android/multiprocess_test_client_service.cc", |
+ "android/test_support_jni_registrar.cc", |
+ "android/test_support_jni_registrar.h", |
"android/test_system_message_handler_link_android.cc", |
"android/test_system_message_handler_link_android.h", |
"fuzzed_data_provider.cc", |
@@ -56,7 +59,9 @@ static_library("test_support") { |
"mock_entropy_provider.h", |
"mock_log.cc", |
"mock_log.h", |
+ "multiprocess_test.cc", |
"multiprocess_test.h", |
+ "multiprocess_test_android.cc", |
"null_task_runner.cc", |
"null_task_runner.h", |
"opaque_ref_counted.cc", |
@@ -146,8 +151,6 @@ static_library("test_support") { |
"launcher/test_launcher_tracer.h", |
"launcher/test_results_tracker.cc", |
"launcher/unit_test_launcher.cc", |
- "multiprocess_test.cc", |
- "multiprocess_test_android.cc", |
] |
} |
@@ -191,7 +194,11 @@ static_library("test_support") { |
} |
if (is_android) { |
- deps += [ ":base_unittests_jni_headers" ] |
+ deps += [ |
+ ":base_unittests_jni_headers", |
+ ":test_support_jni_headers", |
+ ] |
+ public_deps += [ ":test_support_java" ] |
} |
if (is_nacl_nonsfi) { |
@@ -327,4 +334,40 @@ if (is_android) { |
] |
jni_package = "base" |
} |
+ |
+ generate_jni("test_support_jni_headers") { |
+ sources = [ |
+ "android/java/src/org/chromium/base/MainReturnCodeResult.java", |
+ "android/java/src/org/chromium/base/MultiprocessTestClientLauncher.java", |
+ "android/java/src/org/chromium/base/MultiprocessTestClientService.java", |
+ ] |
+ jni_package = "base" |
+ } |
+ |
+ android_library("test_support_java") { |
+ testonly = true |
+ deps = [ |
+ "//base:base_java", |
+ ] |
+ srcjar_deps = [ ":test_support_java_aidl" ] |
+ java_files = [ |
+ "android/java/src/org/chromium/base/FileDescriptorInfo.java", |
+ "android/java/src/org/chromium/base/MainReturnCodeResult.java", |
+ "android/java/src/org/chromium/base/MultiprocessTestClientLauncher.java", |
+ "android/java/src/org/chromium/base/MultiprocessTestClientService.java", |
+ "android/java/src/org/chromium/base/MultiprocessTestClientService0.java", |
+ "android/java/src/org/chromium/base/MultiprocessTestClientService1.java", |
+ "android/java/src/org/chromium/base/MultiprocessTestClientService2.java", |
+ "android/java/src/org/chromium/base/MultiprocessTestClientService3.java", |
+ "android/java/src/org/chromium/base/MultiprocessTestClientService4.java", |
+ ] |
+ } |
+ |
+ android_aidl("test_support_java_aidl") { |
+ testonly = true |
+ import_include = "android/java/src" |
+ sources = [ |
+ "android/java/src/org/chromium/base/ITestClient.aidl", |
+ ] |
+ } |
} |