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

Unified Diff: ipc/ipc_test_base.cc

Issue 1914143004: Re-enable multi-process IPC tests on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-android-tests
Patch Set: Rebase for commit. Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ipc/ipc_send_fds_test.cc ('k') | ipc/mojo/ipc_mojo_bootstrap_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_test_base.cc
diff --git a/ipc/ipc_test_base.cc b/ipc/ipc_test_base.cc
index 831a59ad98ee515c0971f99d3d7e0dd322dc260c..757d9f5bb626e854946719e59555824c6f25665a 100644
--- a/ipc/ipc_test_base.cc
+++ b/ipc/ipc_test_base.cc
@@ -144,8 +144,13 @@ bool IPCTestBase::WaitForClientShutdown() {
DCHECK(client_process_.IsValid());
int exit_code;
+#if defined(OS_ANDROID)
+ bool rv = AndroidWaitForChildExitWithTimeout(
+ client_process_, base::TimeDelta::FromSeconds(5), &exit_code);
+#else
bool rv = client_process_.WaitForExitWithTimeout(
base::TimeDelta::FromSeconds(5), &exit_code);
+#endif // defined(OS_ANDROID)
client_process_.Close();
return rv;
}
« no previous file with comments | « ipc/ipc_send_fds_test.cc ('k') | ipc/mojo/ipc_mojo_bootstrap_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698