| Index: ipc/mojo/run_all_unittests.cc
|
| diff --git a/ipc/mojo/run_all_unittests.cc b/ipc/mojo/run_all_unittests.cc
|
| index 4416932e731d64bbf2917b7a82dccda750fb7002..a831c2d2e309707d3632f0e4c4f6fb282d752f81 100644
|
| --- a/ipc/mojo/run_all_unittests.cc
|
| +++ b/ipc/mojo/run_all_unittests.cc
|
| @@ -5,6 +5,7 @@
|
| #include "base/at_exit.h"
|
| #include "base/bind.h"
|
| #include "base/test/launcher/unit_test_launcher.h"
|
| +#include "base/test/multiprocess_test.h"
|
| #include "base/test/test_io_thread.h"
|
| #include "base/test/test_suite.h"
|
| #include "build/build_config.h"
|
| @@ -18,6 +19,10 @@
|
|
|
| int main(int argc, char** argv) {
|
| #if defined(OS_ANDROID)
|
| + // Enable the alternate test child implementation. This is needed because Mojo
|
| + // tests need to spawn test children after initialising the Mojo system.
|
| + base::InitAndroidMultiProcessTestHelper(main);
|
| +
|
| JNIEnv* env = base::android::AttachCurrentThread();
|
| base::RegisterContentUriTestUtils(env);
|
| #endif
|
|
|