Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Unified Diff: ipc/ipc_channel_mojo_unittest.cc

Issue 2310563002: Adds routed interface support between RenderFrameHost and RenderFrame (Closed)
Patch Set: nit Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ipc/ipc_channel_mojo.cc ('k') | ipc/ipc_channel_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « ipc/ipc_channel_mojo.cc ('k') | ipc/ipc_channel_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698