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

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

Issue 1660403003: Mojo C++ bindings: Rename InterfaceInfoPtr -> InterfaceHandle (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: using {{InterfaceName}}Handle = InterfaceHandle<{{InterfaceName}}> Created 4 years, 11 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
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 1ada250d5a09d28a1a013ac380edac76077c240b..dc4a55a7eec15079f4c559862dde39f2a4bd4f2b 100644
--- a/mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc
@@ -274,7 +274,7 @@ TEST_F(InterfacePtrTest, Resettable) {
// Save this so we can test it later.
Handle handle = pipe.handle0.get();
- a = MakeProxy(InterfacePtrInfo<math::Calculator>(pipe.handle0.Pass(), 0u));
+ a = MakeProxy(InterfaceHandle<math::Calculator>(pipe.handle0.Pass(), 0u));
EXPECT_FALSE(!a);
@@ -292,7 +292,7 @@ TEST_F(InterfacePtrTest, BindInvalidHandle) {
EXPECT_FALSE(ptr.get());
EXPECT_FALSE(ptr);
- ptr.Bind(InterfacePtrInfo<math::Calculator>());
+ ptr.Bind(InterfaceHandle<math::Calculator>());
EXPECT_FALSE(ptr.get());
EXPECT_FALSE(ptr);
}
@@ -493,7 +493,7 @@ TEST(StrongConnectorTest, Math) {
&destroyed);
math::CalculatorPtr calc;
- calc.Bind(InterfacePtrInfo<math::Calculator>(pipe.handle1.Pass(), 0u));
+ calc.Bind(InterfaceHandle<math::Calculator>(pipe.handle1.Pass(), 0u));
{
// Suppose this is instantiated in a process that has the other end of the
@@ -561,7 +561,7 @@ TEST(WeakConnectorTest, Math) {
WeakMathCalculatorImpl impl(pipe.handle0.Pass(), &error_received, &destroyed);
math::CalculatorPtr calc;
- calc.Bind(InterfacePtrInfo<math::Calculator>(pipe.handle1.Pass(), 0u));
+ calc.Bind(InterfaceHandle<math::Calculator>(pipe.handle1.Pass(), 0u));
{
// Suppose this is instantiated in a process that has the other end of the

Powered by Google App Engine
This is Rietveld 408576698