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

Unified Diff: mojo/common/test/multiprocess_test_base.h

Issue 103113002: Mojo: (POSIX) Pass channel handle to child. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years 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 | « no previous file | mojo/common/test/multiprocess_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/common/test/multiprocess_test_base.h
diff --git a/mojo/common/test/multiprocess_test_base.h b/mojo/common/test/multiprocess_test_base.h
index 08b66a32c42ca2e13fd2b8b2a4c4b3e11f0c5a3f..c983df23ee71c77a053ce31b61c0e83e1a08aeb0 100644
--- a/mojo/common/test/multiprocess_test_base.h
+++ b/mojo/common/test/multiprocess_test_base.h
@@ -39,9 +39,11 @@ class MultiprocessTestBase : public base::MultiProcessTest {
// For use by |MOJO_MULTIPROCESS_TEST_CHILD_MAIN()| only:
static void ChildSetup();
- system::PlatformServerChannel* platform_server_channel() {
- return platform_server_channel_.get();
- }
+ // For use in the main process:
+ scoped_ptr<system::PlatformServerChannel> platform_server_channel;
+
+ // For use (and only valid) in the child process:
+ static scoped_ptr<system::PlatformClientChannel> platform_client_channel;
private:
virtual CommandLine MakeCmdLine(const std::string& procname,
@@ -50,8 +52,6 @@ class MultiprocessTestBase : public base::MultiProcessTest {
// Valid after |StartChild()| and before |WaitForChildShutdown()|.
base::ProcessHandle test_child_handle_;
- scoped_ptr<system::PlatformServerChannel> platform_server_channel_;
-
DISALLOW_COPY_AND_ASSIGN(MultiprocessTestBase);
};
« no previous file with comments | « no previous file | mojo/common/test/multiprocess_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698