| 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 "mojo/edk/system/endpoint_relayer.h" | 5 #include "mojo/edk/system/endpoint_relayer.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "mojo/edk/system/channel_endpoint_id.h" | 8 #include "mojo/edk/system/channel_endpoint_id.h" |
| 9 #include "mojo/edk/system/channel_test_base.h" | 9 #include "mojo/edk/system/channel_test_base.h" |
| 10 #include "mojo/edk/system/message_in_transit_queue.h" | 10 #include "mojo/edk/system/message_in_transit_queue.h" |
| 11 #include "mojo/edk/system/message_in_transit_test_utils.h" | 11 #include "mojo/edk/system/message_in_transit_test_utils.h" |
| 12 #include "mojo/edk/system/ref_ptr.h" | |
| 13 #include "mojo/edk/system/test/timeouts.h" | 12 #include "mojo/edk/system/test/timeouts.h" |
| 14 #include "mojo/edk/system/test_channel_endpoint_client.h" | 13 #include "mojo/edk/system/test_channel_endpoint_client.h" |
| 15 #include "mojo/edk/system/waitable_event.h" | 14 #include "mojo/edk/system/waitable_event.h" |
| 16 #include "mojo/edk/util/make_unique.h" | 15 #include "mojo/edk/util/make_unique.h" |
| 16 #include "mojo/edk/util/ref_ptr.h" |
| 17 #include "mojo/public/cpp/system/macros.h" | 17 #include "mojo/public/cpp/system/macros.h" |
| 18 | 18 |
| 19 using mojo::util::MakeRefCounted; |
| 20 using mojo::util::RefPtr; |
| 21 |
| 19 namespace mojo { | 22 namespace mojo { |
| 20 namespace system { | 23 namespace system { |
| 21 namespace { | 24 namespace { |
| 22 | 25 |
| 23 class EndpointRelayerTest : public test::ChannelTestBase { | 26 class EndpointRelayerTest : public test::ChannelTestBase { |
| 24 public: | 27 public: |
| 25 EndpointRelayerTest() {} | 28 EndpointRelayerTest() {} |
| 26 ~EndpointRelayerTest() override {} | 29 ~EndpointRelayerTest() override {} |
| 27 | 30 |
| 28 void SetUp() override { | 31 void SetUp() override { |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 ASSERT_TRUE(message); | 228 ASSERT_TRUE(message); |
| 226 test::VerifyTestMessage(message.get(), message_id); | 229 test::VerifyTestMessage(message.get(), message_id); |
| 227 } | 230 } |
| 228 } | 231 } |
| 229 | 232 |
| 230 // TODO(vtl): Add some "shutdown" tests. | 233 // TODO(vtl): Add some "shutdown" tests. |
| 231 | 234 |
| 232 } // namespace | 235 } // namespace |
| 233 } // namespace system | 236 } // namespace system |
| 234 } // namespace mojo | 237 } // namespace mojo |
| OLD | NEW |