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

Side by Side Diff: mojo/edk/system/channel_unittest.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.cc ('k') | mojo/edk/system/core.h » ('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 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
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
OLDNEW
« no previous file with comments | « mojo/edk/system/channel_test_base.cc ('k') | mojo/edk/system/core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698