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

Unified Diff: mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc

Issue 2855303003: Mojo C++ bindings: add a MakeRequest overload that binds InterfacePtrInfo. (Closed)
Patch Set: Created 3 years, 7 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 | « mojo/public/cpp/bindings/interface_request.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc b/mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc
index 431a84425076dbd97dfb612a3501ee41b937e11e..b292b1370f548011e92bb838107de5545c8509fb 100644
--- a/mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc
@@ -704,15 +704,15 @@ class PingTestImpl : public sample::PingTest {
// Tests that FuseProxy does what it's supposed to do.
TEST_F(InterfacePtrTest, Fusion) {
- sample::PingTestPtr proxy;
- PingTestImpl impl(MakeRequest(&proxy));
+ sample::PingTestPtrInfo proxy_info;
+ PingTestImpl impl(MakeRequest(&proxy_info));
// Create another PingTest pipe.
sample::PingTestPtr ptr;
sample::PingTestRequest request(&ptr);
// Fuse the new pipe to the one hanging off |impl|.
- EXPECT_TRUE(FuseInterface(std::move(request), proxy.PassInterface()));
+ EXPECT_TRUE(FuseInterface(std::move(request), std::move(proxy_info)));
// Ping!
bool called = false;
« no previous file with comments | « mojo/public/cpp/bindings/interface_request.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698