| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "mojo/edk/test/multiprocess_test_helper.h" | 5 #include "mojo/edk/test/multiprocess_test_helper.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/test/test_timeouts.h" | 9 #include "base/test/test_timeouts.h" |
| 10 #include "mojo/edk/embedder/platform_channel_pair.h" | 10 #include "mojo/edk/embedder/platform_channel_pair.h" |
| 11 | 11 |
| 12 using mojo::embedder::ScopedPlatformHandle; | 12 using mojo::platform::ScopedPlatformHandle; |
| 13 | 13 |
| 14 namespace mojo { | 14 namespace mojo { |
| 15 namespace test { | 15 namespace test { |
| 16 | 16 |
| 17 const char kPlatformChannelHandleInfoSwitch[] = "platform-channel-handle-info"; | 17 const char kPlatformChannelHandleInfoSwitch[] = "platform-channel-handle-info"; |
| 18 | 18 |
| 19 MultiprocessTestHelper::MultiprocessTestHelper() | 19 MultiprocessTestHelper::MultiprocessTestHelper() |
| 20 : platform_channel_pair_(new embedder::PlatformChannelPair()) { | 20 : platform_channel_pair_(new embedder::PlatformChannelPair()) { |
| 21 server_platform_handle = platform_channel_pair_->PassServerHandle(); | 21 server_platform_handle = platform_channel_pair_->PassServerHandle(); |
| 22 } | 22 } |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 embedder::PlatformChannelPair::PassClientHandleFromParentProcess( | 92 embedder::PlatformChannelPair::PassClientHandleFromParentProcess( |
| 93 command_line.GetSwitchValueASCII(kPlatformChannelHandleInfoSwitch)); | 93 command_line.GetSwitchValueASCII(kPlatformChannelHandleInfoSwitch)); |
| 94 CHECK(client_platform_handle.is_valid()); | 94 CHECK(client_platform_handle.is_valid()); |
| 95 } | 95 } |
| 96 | 96 |
| 97 // static | 97 // static |
| 98 ScopedPlatformHandle MultiprocessTestHelper::client_platform_handle; | 98 ScopedPlatformHandle MultiprocessTestHelper::client_platform_handle; |
| 99 | 99 |
| 100 } // namespace test | 100 } // namespace test |
| 101 } // namespace mojo | 101 } // namespace mojo |
| OLD | NEW |