OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "third_party/mojo/src/mojo/edk/system/channel_endpoint.h" | 5 #include "third_party/mojo/src/mojo/edk/system/channel_endpoint.h" |
6 | 6 |
7 #include "base/synchronization/waitable_event.h" | 7 #include "base/synchronization/waitable_event.h" |
8 #include "base/test/test_timeouts.h" | 8 #include "base/test/test_timeouts.h" |
9 #include "mojo/public/cpp/system/macros.h" | |
10 #include "third_party/mojo/src/mojo/edk/system/channel_test_base.h" | 9 #include "third_party/mojo/src/mojo/edk/system/channel_test_base.h" |
11 #include "third_party/mojo/src/mojo/edk/system/message_in_transit_queue.h" | 10 #include "third_party/mojo/src/mojo/edk/system/message_in_transit_queue.h" |
12 #include "third_party/mojo/src/mojo/edk/system/message_in_transit_test_utils.h" | 11 #include "third_party/mojo/src/mojo/edk/system/message_in_transit_test_utils.h" |
13 #include "third_party/mojo/src/mojo/edk/system/test_channel_endpoint_client.h" | 12 #include "third_party/mojo/src/mojo/edk/system/test_channel_endpoint_client.h" |
| 13 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h" |
14 | 14 |
15 namespace mojo { | 15 namespace mojo { |
16 namespace system { | 16 namespace system { |
17 namespace { | 17 namespace { |
18 | 18 |
19 class ChannelEndpointTest : public test::ChannelTestBase { | 19 class ChannelEndpointTest : public test::ChannelTestBase { |
20 public: | 20 public: |
21 ChannelEndpointTest() {} | 21 ChannelEndpointTest() {} |
22 ~ChannelEndpointTest() override {} | 22 ~ChannelEndpointTest() override {} |
23 | 23 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 for (unsigned message_id = 1; message_id <= 6; message_id++) { | 128 for (unsigned message_id = 1; message_id <= 6; message_id++) { |
129 scoped_ptr<MessageInTransit> read_message = client0->PopMessage(); | 129 scoped_ptr<MessageInTransit> read_message = client0->PopMessage(); |
130 ASSERT_TRUE(read_message); | 130 ASSERT_TRUE(read_message); |
131 test::VerifyTestMessage(read_message.get(), message_id); | 131 test::VerifyTestMessage(read_message.get(), message_id); |
132 } | 132 } |
133 } | 133 } |
134 | 134 |
135 } // namespace | 135 } // namespace |
136 } // namespace system | 136 } // namespace system |
137 } // namespace mojo | 137 } // namespace mojo |
OLD | NEW |