Index: trunk/src/ipc/ipc_channel_unittest.cc |
=================================================================== |
--- trunk/src/ipc/ipc_channel_unittest.cc (revision 273594) |
+++ trunk/src/ipc/ipc_channel_unittest.cc (working copy) |
@@ -254,12 +254,12 @@ |
GenericChannelListener listener; |
// Set up IPC channel. |
- scoped_ptr<IPC::Channel> channel(IPC::Channel::CreateClient( |
- IPCTestBase::GetChannelName("GenericClient"), |
- &listener)); |
- CHECK(channel->Connect()); |
- listener.Init(channel.get()); |
- Send(channel.get(), "hello from child"); |
+ IPC::Channel channel(IPCTestBase::GetChannelName("GenericClient"), |
+ IPC::Channel::MODE_CLIENT, |
+ &listener); |
+ CHECK(channel.Connect()); |
+ listener.Init(&channel); |
+ Send(&channel, "hello from child"); |
base::MessageLoop::current()->Run(); |
return 0; |