Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: mojo/edk/system/channel_test_base.cc

Issue 1423713009: EDK: Move ref counting classes to mojo/edk/util. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/edk/system/channel_test_base.h ('k') | mojo/edk/system/channel_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « mojo/edk/system/channel_test_base.h ('k') | mojo/edk/system/channel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698