Index: mojo/system/message_pipe_test_utils.cc |
diff --git a/mojo/system/message_pipe_test_utils.cc b/mojo/system/message_pipe_test_utils.cc |
index 786c23ae1874b10b6b074c998d11d678c541f557..40f80d2f7d32e27efec2c43fe46d16949911a285 100644 |
--- a/mojo/system/message_pipe_test_utils.cc |
+++ b/mojo/system/message_pipe_test_utils.cc |
@@ -6,6 +6,7 @@ |
#include "base/bind.h" |
#include "base/threading/platform_thread.h" // For |Sleep()|. |
+#include "mojo/system/channel_endpoint.h" |
#include "mojo/system/waiter.h" |
namespace mojo { |
@@ -82,7 +83,8 @@ void ChannelThread::InitChannelOnIOThread( |
// receive/process messages (which it can do as soon as it's hooked up to |
// the IO thread message loop, and that message loop runs) before the |
// message pipe endpoint is attached. |
- CHECK_EQ(channel_->AttachMessagePipeEndpoint(message_pipe, 1), |
+ CHECK_EQ(channel_->AttachEndpoint( |
+ make_scoped_refptr(new ChannelEndpoint(message_pipe.get(), 1))), |
Channel::kBootstrapEndpointId); |
CHECK(channel_->RunMessagePipeEndpoint(Channel::kBootstrapEndpointId, |
Channel::kBootstrapEndpointId)); |