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

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

Issue 1423713009: EDK: Move ref counting classes to mojo/edk/util. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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::util::MakeRefCounted;
18 using mojo::util::RefPtr;
19
17 namespace mojo { 20 namespace mojo {
18 namespace system { 21 namespace system {
19 namespace test { 22 namespace test {
20 23
21 MojoResult WaitIfNecessary(MessagePipe* mp, 24 MojoResult WaitIfNecessary(MessagePipe* mp,
22 MojoHandleSignals signals, 25 MojoHandleSignals signals,
23 HandleSignalsState* signals_state) { 26 HandleSignalsState* signals_state) {
24 Waiter waiter; 27 Waiter waiter;
25 waiter.Init(); 28 waiter.Init();
26 29
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } 104 }
102 105
103 void MultiprocessMessagePipeTestBase::Init(RefPtr<ChannelEndpoint>&& ep) { 106 void MultiprocessMessagePipeTestBase::Init(RefPtr<ChannelEndpoint>&& ep) {
104 channel_thread_.Start(helper_.server_platform_handle.Pass(), std::move(ep)); 107 channel_thread_.Start(helper_.server_platform_handle.Pass(), std::move(ep));
105 } 108 }
106 #endif 109 #endif
107 110
108 } // namespace test 111 } // namespace test
109 } // namespace system 112 } // namespace system
110 } // namespace mojo 113 } // 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