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

Side by Side Diff: mojo/edk/system/message_pipe_test_utils.cc

Issue 1483823004: EDK: Move {platform_handle,scoped_platform_handle}.* to //mojo/edk/platform. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « mojo/edk/system/message_pipe_test_utils.h ('k') | mojo/edk/system/multiprocess_message_pipe_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698