| 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 #include "mojo/edk/system/channel.h" | 5 #include "mojo/edk/system/channel.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "mojo/edk/system/channel_endpoint.h" | 9 #include "mojo/edk/system/channel_endpoint.h" |
| 10 #include "mojo/edk/system/channel_endpoint_id.h" | 10 #include "mojo/edk/system/channel_endpoint_id.h" |
| 11 #include "mojo/edk/system/channel_test_base.h" | 11 #include "mojo/edk/system/channel_test_base.h" |
| 12 #include "mojo/edk/system/message_pipe.h" | 12 #include "mojo/edk/system/message_pipe.h" |
| 13 #include "mojo/edk/system/ref_ptr.h" | |
| 14 #include "mojo/edk/system/waiter.h" | 13 #include "mojo/edk/system/waiter.h" |
| 14 #include "mojo/edk/util/ref_ptr.h" |
| 15 |
| 16 using mojo::util::RefPtr; |
| 15 | 17 |
| 16 namespace mojo { | 18 namespace mojo { |
| 17 namespace system { | 19 namespace system { |
| 18 namespace { | 20 namespace { |
| 19 | 21 |
| 20 using ChannelTest = test::ChannelTestBase; | 22 using ChannelTest = test::ChannelTestBase; |
| 21 | 23 |
| 22 void DoNothing() {} | 24 void DoNothing() {} |
| 23 | 25 |
| 24 // ChannelTest.InitShutdown ---------------------------------------------------- | 26 // ChannelTest.InitShutdown ---------------------------------------------------- |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 io_thread()->PostTaskAndWait(base::Bind(&DoNothing)); | 134 io_thread()->PostTaskAndWait(base::Bind(&DoNothing)); |
| 133 EXPECT_FALSE(channel(0)); | 135 EXPECT_FALSE(channel(0)); |
| 134 } | 136 } |
| 135 } | 137 } |
| 136 | 138 |
| 137 // TODO(vtl): More. ------------------------------------------------------------ | 139 // TODO(vtl): More. ------------------------------------------------------------ |
| 138 | 140 |
| 139 } // namespace | 141 } // namespace |
| 140 } // namespace system | 142 } // namespace system |
| 141 } // namespace mojo | 143 } // namespace mojo |
| OLD | NEW |