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

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

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.h
diff --git a/third_party/mojo/src/mojo/edk/test/multiprocess_test_helper.h b/mojo/edk/test/multiprocess_test_helper.h
similarity index 93%
copy from third_party/mojo/src/mojo/edk/test/multiprocess_test_helper.h
copy to mojo/edk/test/multiprocess_test_helper.h
index fb00510f18bd36ec8c4696ef0ac2b36ef5dffc5e..3ff8b85ad9aeb8cf4db841d9cfbc6815f1af3cb2 100644
--- a/third_party/mojo/src/mojo/edk/test/multiprocess_test_helper.h
+++ b/mojo/edk/test/multiprocess_test_helper.h
@@ -16,9 +16,8 @@
namespace mojo {
-namespace embedder {
+namespace edk {
class PlatformChannelPair;
-}
namespace test {
@@ -55,13 +54,13 @@ class MultiprocessTestHelper {
static void ChildSetup();
// For use in the main process:
- embedder::ScopedPlatformHandle server_platform_handle;
+ ScopedPlatformHandle server_platform_handle;
// For use (and only valid) in the child process:
- static embedder::ScopedPlatformHandle client_platform_handle;
+ static ScopedPlatformHandle client_platform_handle;
private:
- scoped_ptr<embedder::PlatformChannelPair> platform_channel_pair_;
+ scoped_ptr<PlatformChannelPair> platform_channel_pair_;
// Valid after |StartChild()| and before |WaitForChildShutdown()|.
base::Process test_child_;
@@ -75,7 +74,7 @@ class MultiprocessTestHelper {
#define MOJO_MULTIPROCESS_TEST_CHILD_MAIN(test_child_name) \
MULTIPROCESS_TEST_MAIN_WITH_SETUP( \
test_child_name##TestChildMain, \
- ::mojo::test::MultiprocessTestHelper::ChildSetup)
+ test::MultiprocessTestHelper::ChildSetup)
// Use this (and |WaitForChildTestShutdown()|) for the child process's "main()",
// if you want to use |EXPECT_...()| or |ASSERT_...()|; it has a |void| return
@@ -93,6 +92,7 @@ class MultiprocessTestHelper {
void test_child_name##TestChildTest()
} // namespace test
+} // namespace edk
} // namespace mojo
#endif // MOJO_EDK_TEST_MULTIPROCESS_TEST_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698