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; |
} |