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

Unified Diff: mojo/edk/test/multiprocess_test_helper.cc

Issue 1712143002: [mojo-edk] Add support for transferring mach ports. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build Created 4 years, 9 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 | « mojo/edk/test/multiprocess_test_helper.h ('k') | mojo/mojo_edk.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()));
« no previous file with comments | « mojo/edk/test/multiprocess_test_helper.h ('k') | mojo/mojo_edk.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698