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

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

Issue 1350023003: Add a Mojo EDK for Chrome that uses one OS pipe per message pipe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move to mojo::edk namespace in preparation for runtim flag Created 5 years, 3 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
Index: mojo/edk/test/multiprocess_test_helper.cc
diff --git a/third_party/mojo/src/mojo/edk/test/multiprocess_test_helper.cc b/mojo/edk/test/multiprocess_test_helper.cc
similarity index 90%
copy from third_party/mojo/src/mojo/edk/test/multiprocess_test_helper.cc
copy to mojo/edk/test/multiprocess_test_helper.cc
index c107a02da2abf627778b6c4807fc3600e4d3ffc6..10645f9311e1b3dd4825b51ebc8447df60af55ba 100644
--- a/third_party/mojo/src/mojo/edk/test/multiprocess_test_helper.cc
+++ b/mojo/edk/test/multiprocess_test_helper.cc
@@ -12,10 +12,11 @@
#include "mojo/edk/embedder/platform_channel_pair.h"
namespace mojo {
+namespace edk {
namespace test {
MultiprocessTestHelper::MultiprocessTestHelper() {
- platform_channel_pair_.reset(new embedder::PlatformChannelPair());
+ platform_channel_pair_.reset(new PlatformChannelPair());
server_platform_handle = platform_channel_pair_->PassServerHandle();
}
@@ -41,7 +42,7 @@ void MultiprocessTestHelper::StartChildWithExtraSwitch(
base::CommandLine command_line(
base::GetMultiProcessTestChildBaseCommandLine());
- embedder::HandlePassingInformation handle_passing_info;
+ HandlePassingInformation handle_passing_info;
platform_channel_pair_->PrepareToPassClientHandleToChildProcess(
&command_line, &handle_passing_info);
@@ -88,12 +89,13 @@ bool MultiprocessTestHelper::WaitForChildTestShutdown() {
void MultiprocessTestHelper::ChildSetup() {
CHECK(base::CommandLine::InitializedForCurrentProcess());
client_platform_handle =
- embedder::PlatformChannelPair::PassClientHandleFromParentProcess(
+ PlatformChannelPair::PassClientHandleFromParentProcess(
*base::CommandLine::ForCurrentProcess());
}
// static
-embedder::ScopedPlatformHandle MultiprocessTestHelper::client_platform_handle;
+ScopedPlatformHandle MultiprocessTestHelper::client_platform_handle;
} // namespace test
+} // namespace edk
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698