| 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/channel_test_base.h" | 5 #include "mojo/edk/system/channel_test_base.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 11 #include "mojo/edk/embedder/platform_channel_pair.h" | 11 #include "mojo/edk/embedder/platform_channel_pair.h" |
| 12 #include "mojo/edk/system/raw_channel.h" | 12 #include "mojo/edk/system/raw_channel.h" |
| 13 | 13 |
| 14 using mojo::util::MakeRefCounted; |
| 15 |
| 14 namespace mojo { | 16 namespace mojo { |
| 15 namespace system { | 17 namespace system { |
| 16 namespace test { | 18 namespace test { |
| 17 | 19 |
| 18 ChannelTestBase::ChannelTestBase() | 20 ChannelTestBase::ChannelTestBase() |
| 19 : io_thread_(TestIOThread::StartMode::AUTO) {} | 21 : io_thread_(TestIOThread::StartMode::AUTO) {} |
| 20 | 22 |
| 21 ChannelTestBase::~ChannelTestBase() { | 23 ChannelTestBase::~ChannelTestBase() { |
| 22 } | 24 } |
| 23 | 25 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 CHECK_EQ(base::MessageLoop::current(), io_thread()->message_loop()); | 63 CHECK_EQ(base::MessageLoop::current(), io_thread()->message_loop()); |
| 62 | 64 |
| 63 embedder::PlatformChannelPair channel_pair; | 65 embedder::PlatformChannelPair channel_pair; |
| 64 raw_channels_[0] = RawChannel::Create(channel_pair.PassServerHandle()); | 66 raw_channels_[0] = RawChannel::Create(channel_pair.PassServerHandle()); |
| 65 raw_channels_[1] = RawChannel::Create(channel_pair.PassClientHandle()); | 67 raw_channels_[1] = RawChannel::Create(channel_pair.PassClientHandle()); |
| 66 } | 68 } |
| 67 | 69 |
| 68 } // namespace test | 70 } // namespace test |
| 69 } // namespace system | 71 } // namespace system |
| 70 } // namespace mojo | 72 } // namespace mojo |
| OLD | NEW |