Index: base/test/multiprocess_test.h |
diff --git a/base/test/multiprocess_test.h b/base/test/multiprocess_test.h |
index ab1d0ca4c02698b9466a6d3949b700d9a874d688..e0d54d399978a58bfbfbefdb5762293e9364002c 100644 |
--- a/base/test/multiprocess_test.h |
+++ b/base/test/multiprocess_test.h |
@@ -66,6 +66,21 @@ Process SpawnMultiProcessTestChild( |
// may add any flags needed for your child process. |
CommandLine GetMultiProcessTestChildBaseCommandLine(); |
+#if defined(OS_ANDROID) |
+ |
+// Enable the alternate test child implementation which support spawning a child |
+// after threads have been created. If used, this MUST be the first line of |
+// main(). The main function is passed in to avoid a link-time dependency in |
+// component builds. |
+void InitAndroidMultiProcessTestHelper(int (*main)(int, char**)); |
+ |
+// Wait for a test child to exit if the alternate tech child implementation is |
Paweł Hajdan Jr.
2016/04/26 20:19:43
What's "alternate tech child"? Should "tech" chang
Anand Mistry (off Chromium)
2016/04/26 23:50:38
Done.
|
+// being used. |
+bool AndroidWaitForChildExitWithTimeout( |
Paweł Hajdan Jr.
2016/04/26 20:19:43
nit: WARN_UNUSED_RESULT
Anand Mistry (off Chromium)
2016/04/26 23:50:39
Done.
|
+ const Process& process, TimeDelta timeout, int* exit_code); |
+ |
+#endif |
Paweł Hajdan Jr.
2016/04/26 20:19:43
nit: // defined(OS_ANDROID)
Anand Mistry (off Chromium)
2016/04/26 23:50:39
Done.
|
+ |
// MultiProcessTest ------------------------------------------------------------ |
// A MultiProcessTest is a test class which makes it easier to |