Index: ipc/ipc_channel_mojo_unittest.cc |
diff --git a/ipc/ipc_channel_mojo_unittest.cc b/ipc/ipc_channel_mojo_unittest.cc |
index ddb0e093a9f4d759924472c1e2db01174cef072b..99265816d99a0a72567e8bf1163beaf8f6b45404 100644 |
--- a/ipc/ipc_channel_mojo_unittest.cc |
+++ b/ipc/ipc_channel_mojo_unittest.cc |
@@ -809,10 +809,13 @@ class ListenerWithSimpleProxyAssociatedInterface |
DCHECK(received_quit_); |
} |
- void RegisterInterfaceFactory(IPC::ChannelProxy* proxy) { |
- proxy->AddAssociatedInterface( |
- base::Bind(&ListenerWithSimpleProxyAssociatedInterface::BindRequest, |
- base::Unretained(this))); |
+ void OnAssociatedInterfaceRequest( |
+ const std::string& interface_name, |
+ mojo::ScopedInterfaceEndpointHandle handle) override { |
+ DCHECK_EQ(interface_name, IPC::mojom::SimpleTestDriver::Name_); |
+ IPC::mojom::SimpleTestDriverAssociatedRequest request; |
+ request.Bind(std::move(handle)); |
+ binding_.Bind(std::move(request)); |
} |
bool received_all_messages() const { |
@@ -859,7 +862,6 @@ TEST_F(IPCChannelProxyMojoTest, ProxyThreadAssociatedInterface) { |
ListenerWithSimpleProxyAssociatedInterface listener; |
CreateProxy(&listener); |
- listener.RegisterInterfaceFactory(proxy()); |
RunProxy(); |
base::RunLoop().Run(); |