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 "mojo/edk/embedder/platform_channel_pair.h" | 10 #include "mojo/edk/embedder/platform_channel_pair.h" |
(...skipping 46 matching lines...) Loading... |
57 | 57 |
58 void ChannelTestBase::ShutdownAndReleaseChannelOnIOThread(unsigned i) { | 58 void ChannelTestBase::ShutdownAndReleaseChannelOnIOThread(unsigned i) { |
59 ShutdownChannelOnIOThread(i); | 59 ShutdownChannelOnIOThread(i); |
60 channels_[i] = nullptr; | 60 channels_[i] = nullptr; |
61 } | 61 } |
62 | 62 |
63 void ChannelTestBase::SetUpOnIOThread() { | 63 void ChannelTestBase::SetUpOnIOThread() { |
64 CHECK(io_thread()->IsCurrentAndRunning()); | 64 CHECK(io_thread()->IsCurrentAndRunning()); |
65 | 65 |
66 embedder::PlatformChannelPair channel_pair; | 66 embedder::PlatformChannelPair channel_pair; |
67 raw_channels_[0] = RawChannel::Create(channel_pair.PassServerHandle()); | 67 raw_channels_[0] = RawChannel::Create(channel_pair.handle0.Pass()); |
68 raw_channels_[1] = RawChannel::Create(channel_pair.PassClientHandle()); | 68 raw_channels_[1] = RawChannel::Create(channel_pair.handle1.Pass()); |
69 } | 69 } |
70 | 70 |
71 } // namespace test | 71 } // namespace test |
72 } // namespace system | 72 } // namespace system |
73 } // namespace mojo | 73 } // namespace mojo |
OLD | NEW |