| Index: mojo/edk/test/multiprocess_test_helper.cc
|
| diff --git a/mojo/edk/test/multiprocess_test_helper.cc b/mojo/edk/test/multiprocess_test_helper.cc
|
| index efc4e6b4dbbb261d0987630ec5bcd15de888c52e..7098934faab777137424b63e800b8ebb5f7fa4e8 100644
|
| --- a/mojo/edk/test/multiprocess_test_helper.cc
|
| +++ b/mojo/edk/test/multiprocess_test_helper.cc
|
| @@ -27,6 +27,8 @@
|
|
|
| #if defined(OS_WIN)
|
| #include "base/win/windows_version.h"
|
| +#elif defined(OS_MACOSX) && !defined(OS_IOS)
|
| +#include "base/mac/mach_port_broker.h"
|
| #endif
|
|
|
| namespace mojo {
|
| @@ -148,6 +150,10 @@ void MultiprocessTestHelper::ChildSetup() {
|
| ->GetSwitchValueASCII(kMojoPrimordialPipeToken);
|
| CHECK(!primordial_pipe_token.empty());
|
|
|
| +#if defined(OS_MACOSX) && !defined(OS_IOS)
|
| + CHECK(base::MachPortBroker::ChildSendTaskPortToParent("mojo_test"));
|
| +#endif
|
| +
|
| SetParentPipeHandle(
|
| PlatformChannelPair::PassClientHandleFromParentProcess(
|
| *base::CommandLine::ForCurrentProcess()));
|
|
|