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

Side by Side Diff: mojo/edk/system/channel_manager_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_manager.cc ('k') | mojo/edk/system/channel_test_base.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_manager.h" 5 #include "mojo/edk/system/channel_manager.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
11 #include "mojo/edk/embedder/platform_channel_pair.h" 11 #include "mojo/edk/embedder/platform_channel_pair.h"
12 #include "mojo/edk/embedder/platform_task_runner.h" 12 #include "mojo/edk/embedder/platform_task_runner.h"
13 #include "mojo/edk/embedder/simple_platform_support.h" 13 #include "mojo/edk/embedder/simple_platform_support.h"
14 #include "mojo/edk/system/channel.h" 14 #include "mojo/edk/system/channel.h"
15 #include "mojo/edk/system/channel_endpoint.h" 15 #include "mojo/edk/system/channel_endpoint.h"
16 #include "mojo/edk/system/message_pipe_dispatcher.h" 16 #include "mojo/edk/system/message_pipe_dispatcher.h"
17 #include "mojo/edk/system/test/simple_test_thread.h" 17 #include "mojo/edk/system/test/simple_test_thread.h"
18 #include "mojo/public/cpp/system/macros.h" 18 #include "mojo/public/cpp/system/macros.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 using mojo::util::RefPtr;
22
21 namespace mojo { 23 namespace mojo {
22 namespace system { 24 namespace system {
23 namespace { 25 namespace {
24 26
25 class ChannelManagerTest : public testing::Test { 27 class ChannelManagerTest : public testing::Test {
26 public: 28 public:
27 ChannelManagerTest() 29 ChannelManagerTest()
28 : message_loop_(base::MessageLoop::TYPE_IO), 30 : message_loop_(base::MessageLoop::TYPE_IO),
29 channel_manager_(&platform_support_, 31 channel_manager_(&platform_support_,
30 message_loop_.task_runner(), 32 message_loop_.task_runner(),
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 155
154 EXPECT_EQ(MOJO_RESULT_OK, d->Close()); 156 EXPECT_EQ(MOJO_RESULT_OK, d->Close());
155 } 157 }
156 158
157 // TODO(vtl): Test |CreateChannelWithoutBootstrapOnIOThread()|. (This will 159 // TODO(vtl): Test |CreateChannelWithoutBootstrapOnIOThread()|. (This will
158 // require additional functionality in |Channel|.) 160 // require additional functionality in |Channel|.)
159 161
160 } // namespace 162 } // namespace
161 } // namespace system 163 } // namespace system
162 } // namespace mojo 164 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/channel_manager.cc ('k') | mojo/edk/system/channel_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698