summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_perftests.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/ipc_perftests.cc')
-rw-r--r--ipc/ipc_perftests.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/ipc/ipc_perftests.cc b/ipc/ipc_perftests.cc
index 3feabda..d4b1abd 100644
--- a/ipc/ipc_perftests.cc
+++ b/ipc/ipc_perftests.cc
@@ -265,10 +265,11 @@ TEST_F(IPCChannelPerfTest, Performance) {
MULTIPROCESS_IPC_TEST_CLIENT_MAIN(PerformanceClient) {
base::MessageLoopForIO main_message_loop;
ChannelReflectorListener listener;
- scoped_ptr<IPC::Channel> channel(IPC::Channel::CreateClient(
- IPCTestBase::GetChannelName("PerformanceClient"), &listener));
- listener.Init(channel.get());
- CHECK(channel->Connect());
+ IPC::Channel channel(IPCTestBase::GetChannelName("PerformanceClient"),
+ IPC::Channel::MODE_CLIENT,
+ &listener);
+ listener.Init(&channel);
+ CHECK(channel.Connect());
base::MessageLoop::current()->Run();
return 0;