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

Unified Diff: mojo/system/remote_message_pipe_unittest.cc

Issue 591573002: Mojo: Remove Channel::AttachMessagePipeEndpoint(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/system/message_pipe_test_utils.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/remote_message_pipe_unittest.cc
diff --git a/mojo/system/remote_message_pipe_unittest.cc b/mojo/system/remote_message_pipe_unittest.cc
index 406700680e775d7b365076326daea11562a232d6..8a3b9e62f37b9271d32dbf0c3259e09f6c8a9a5c 100644
--- a/mojo/system/remote_message_pipe_unittest.cc
+++ b/mojo/system/remote_message_pipe_unittest.cc
@@ -26,6 +26,7 @@
#include "mojo/embedder/scoped_platform_handle.h"
#include "mojo/embedder/simple_platform_support.h"
#include "mojo/system/channel.h"
+#include "mojo/system/channel_endpoint.h"
#include "mojo/system/message_pipe.h"
#include "mojo/system/message_pipe_dispatcher.h"
#include "mojo/system/platform_handle_dispatcher.h"
@@ -137,10 +138,10 @@ class RemoteMessagePipeTest : public testing::Test {
if (!channels_[1].get())
CreateAndInitChannel(1);
- MessageInTransit::EndpointId local_id0 =
- channels_[0]->AttachMessagePipeEndpoint(mp0, 1);
- MessageInTransit::EndpointId local_id1 =
- channels_[1]->AttachMessagePipeEndpoint(mp1, 0);
+ MessageInTransit::EndpointId local_id0 = channels_[0]->AttachEndpoint(
+ make_scoped_refptr(new ChannelEndpoint(mp0.get(), 1)));
+ MessageInTransit::EndpointId local_id1 = channels_[1]->AttachEndpoint(
+ make_scoped_refptr(new ChannelEndpoint(mp1.get(), 0)));
CHECK(channels_[0]->RunMessagePipeEndpoint(local_id0, local_id1));
CHECK(channels_[1]->RunMessagePipeEndpoint(local_id1, local_id0));
@@ -155,7 +156,8 @@ class RemoteMessagePipeTest : public testing::Test {
CreateAndInitChannel(channel_index);
MessageInTransit::EndpointId endpoint_id =
- channels_[channel_index]->AttachMessagePipeEndpoint(mp, port);
+ channels_[channel_index]->AttachEndpoint(
+ make_scoped_refptr(new ChannelEndpoint(mp.get(), port)));
if (endpoint_id == MessageInTransit::kInvalidEndpointId)
return;
« no previous file with comments | « mojo/system/message_pipe_test_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698