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

Unified Diff: mojo/edk/system/channel_manager_unittest.cc

Issue 1651183003: Make PlatformChannelPair "dumb". (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/edk/embedder/platform_channel_pair_unittest.cc ('k') | mojo/edk/system/channel_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/channel_manager_unittest.cc
diff --git a/mojo/edk/system/channel_manager_unittest.cc b/mojo/edk/system/channel_manager_unittest.cc
index ee51f216ffcc1fc73fc7f292e93a6c90ad2101a2..f0e708591e1a64a3216e81463849c91a27eea45f 100644
--- a/mojo/edk/system/channel_manager_unittest.cc
+++ b/mojo/edk/system/channel_manager_unittest.cc
@@ -69,7 +69,7 @@ TEST_F(ChannelManagerTest, Basic) {
const ChannelId id = 1;
RefPtr<MessagePipeDispatcher> d = channel_manager().CreateChannelOnIOThread(
- id, channel_pair.PassServerHandle());
+ id, channel_pair.handle0.Pass());
RefPtr<Channel> ch = channel_manager().GetChannel(id);
EXPECT_TRUE(ch);
@@ -92,11 +92,11 @@ TEST_F(ChannelManagerTest, TwoChannels) {
const ChannelId id1 = 1;
RefPtr<MessagePipeDispatcher> d1 = channel_manager().CreateChannelOnIOThread(
- id1, channel_pair.PassServerHandle());
+ id1, channel_pair.handle0.Pass());
const ChannelId id2 = 2;
RefPtr<MessagePipeDispatcher> d2 = channel_manager().CreateChannelOnIOThread(
- id2, channel_pair.PassClientHandle());
+ id2, channel_pair.handle1.Pass());
RefPtr<Channel> ch1 = channel_manager().GetChannel(id1);
EXPECT_TRUE(ch1);
@@ -171,7 +171,7 @@ TEST_F(ChannelManagerTest, CallsFromOtherThread) {
const ChannelId id = 1;
RefPtr<MessagePipeDispatcher> d = channel_manager().CreateChannelOnIOThread(
- id, channel_pair.PassServerHandle());
+ id, channel_pair.handle0.Pass());
OtherThread thread(task_runner().Clone(), &channel_manager(), id,
[this]() { message_loop()->QuitNow(); });
« no previous file with comments | « mojo/edk/embedder/platform_channel_pair_unittest.cc ('k') | mojo/edk/system/channel_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698