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 #ifndef MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_ | 5 #ifndef MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_ |
6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_ | 6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_ |
7 | 7 |
8 #include "mojo/edk/embedder/simple_platform_support.h" | 8 #include "mojo/edk/embedder/simple_platform_support.h" |
9 #include "mojo/edk/system/channel.h" | 9 #include "mojo/edk/system/channel.h" |
10 #include "mojo/edk/system/ref_ptr.h" | 10 #include "mojo/edk/system/ref_ptr.h" |
11 #include "mojo/edk/system/test_utils.h" | 11 #include "mojo/edk/system/test_utils.h" |
12 #include "mojo/edk/test/multiprocess_test_helper.h" | 12 #include "mojo/edk/test/multiprocess_test_helper.h" |
13 #include "mojo/edk/test/test_io_thread.h" | 13 #include "mojo/edk/test/test_io_thread.h" |
14 #include "mojo/public/cpp/system/macros.h" | 14 #include "mojo/public/cpp/system/macros.h" |
15 | 15 |
16 namespace mojo { | 16 namespace mojo { |
17 namespace system { | 17 namespace system { |
18 | 18 |
19 class Channel; | 19 class Channel; |
20 class ChannelEndpoint; | 20 class ChannelEndpoint; |
21 class MessagePipe; | 21 class MessagePipe; |
22 | 22 |
23 namespace test { | 23 namespace test { |
24 | 24 |
25 MojoResult WaitIfNecessary(scoped_refptr<MessagePipe> mp, | 25 MojoResult WaitIfNecessary(MessagePipe* mp, |
26 MojoHandleSignals signals, | 26 MojoHandleSignals signals, |
27 HandleSignalsState* signals_state); | 27 HandleSignalsState* signals_state); |
28 | 28 |
29 class ChannelThread { | 29 class ChannelThread { |
30 public: | 30 public: |
31 explicit ChannelThread(embedder::PlatformSupport* platform_support); | 31 explicit ChannelThread(embedder::PlatformSupport* platform_support); |
32 ~ChannelThread(); | 32 ~ChannelThread(); |
33 | 33 |
34 void Start(embedder::ScopedPlatformHandle platform_handle, | 34 void Start(embedder::ScopedPlatformHandle platform_handle, |
35 RefPtr<ChannelEndpoint>&& channel_endpoint); | 35 RefPtr<ChannelEndpoint>&& channel_endpoint); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 MOJO_DISALLOW_COPY_AND_ASSIGN(MultiprocessMessagePipeTestBase); | 69 MOJO_DISALLOW_COPY_AND_ASSIGN(MultiprocessMessagePipeTestBase); |
70 }; | 70 }; |
71 #endif | 71 #endif |
72 | 72 |
73 } // namespace test | 73 } // namespace test |
74 } // namespace system | 74 } // namespace system |
75 } // namespace mojo | 75 } // namespace mojo |
76 | 76 |
77 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_ | 77 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_ |
OLD | NEW |