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

Unified Diff: base/test/multiprocess_test.h

Issue 1910233003: Implement a new child test helper for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Inject main(). 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 | « no previous file | base/test/multiprocess_test_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | base/test/multiprocess_test_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698