| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/system/message_pipe_test_utils.h" | 5 #include "mojo/edk/system/message_pipe_test_utils.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "mojo/edk/system/channel.h" | 10 #include "mojo/edk/system/channel.h" |
| 11 #include "mojo/edk/system/channel_endpoint.h" | 11 #include "mojo/edk/system/channel_endpoint.h" |
| 12 #include "mojo/edk/system/message_pipe.h" | 12 #include "mojo/edk/system/message_pipe.h" |
| 13 #include "mojo/edk/system/test/sleep.h" | 13 #include "mojo/edk/system/test/sleep.h" |
| 14 #include "mojo/edk/system/test/timeouts.h" | 14 #include "mojo/edk/system/test/timeouts.h" |
| 15 #include "mojo/edk/system/waiter.h" | 15 #include "mojo/edk/system/waiter.h" |
| 16 | 16 |
| 17 using mojo::embedder::ScopedPlatformHandle; | 17 using mojo::platform::ScopedPlatformHandle; |
| 18 using mojo::util::MakeRefCounted; | 18 using mojo::util::MakeRefCounted; |
| 19 using mojo::util::RefPtr; | 19 using mojo::util::RefPtr; |
| 20 | 20 |
| 21 namespace mojo { | 21 namespace mojo { |
| 22 namespace system { | 22 namespace system { |
| 23 namespace test { | 23 namespace test { |
| 24 | 24 |
| 25 MojoResult WaitIfNecessary(MessagePipe* mp, | 25 MojoResult WaitIfNecessary(MessagePipe* mp, |
| 26 MojoHandleSignals signals, | 26 MojoHandleSignals signals, |
| 27 HandleSignalsState* signals_state) { | 27 HandleSignalsState* signals_state) { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 } | 105 } |
| 106 | 106 |
| 107 void MultiprocessMessagePipeTestBase::Init(RefPtr<ChannelEndpoint>&& ep) { | 107 void MultiprocessMessagePipeTestBase::Init(RefPtr<ChannelEndpoint>&& ep) { |
| 108 channel_thread_.Start(helper_.server_platform_handle.Pass(), std::move(ep)); | 108 channel_thread_.Start(helper_.server_platform_handle.Pass(), std::move(ep)); |
| 109 } | 109 } |
| 110 #endif | 110 #endif |
| 111 | 111 |
| 112 } // namespace test | 112 } // namespace test |
| 113 } // namespace system | 113 } // namespace system |
| 114 } // namespace mojo | 114 } // namespace mojo |
| OLD | NEW |