Index: trunk/src/ipc/sync_socket_unittest.cc |
=================================================================== |
--- trunk/src/ipc/sync_socket_unittest.cc (revision 273594) |
+++ trunk/src/ipc/sync_socket_unittest.cc (working copy) |
@@ -108,11 +108,11 @@ |
MULTIPROCESS_IPC_TEST_CLIENT_MAIN(SyncSocketServerClient) { |
base::MessageLoopForIO main_message_loop; |
SyncSocketServerListener listener; |
- scoped_ptr<IPC::Channel> channel(IPC::Channel::CreateClient( |
- IPCTestBase::GetChannelName("SyncSocketServerClient"), |
- &listener)); |
- EXPECT_TRUE(channel->Connect()); |
- listener.Init(channel.get()); |
+ IPC::Channel channel(IPCTestBase::GetChannelName("SyncSocketServerClient"), |
+ IPC::Channel::MODE_CLIENT, |
+ &listener); |
+ EXPECT_TRUE(channel.Connect()); |
+ listener.Init(&channel); |
base::MessageLoop::current()->Run(); |
return 0; |
} |