| Index: third_party/mojo/src/mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc
|
| diff --git a/third_party/mojo/src/mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc b/third_party/mojo/src/mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc
|
| index 3fcade67fd823a2c1259de54df96ddc7841a9f30..524b07c64d2e750e2eadb2cca09f52ff41f6d423 100644
|
| --- a/third_party/mojo/src/mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc
|
| +++ b/third_party/mojo/src/mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc
|
| @@ -261,6 +261,16 @@ TEST_F(InterfacePtrTest, Resettable) {
|
| EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT, CloseRaw(handle));
|
| }
|
|
|
| +TEST_F(InterfacePtrTest, BindInvalidHandle) {
|
| + math::CalculatorPtr ptr;
|
| + EXPECT_FALSE(ptr.get());
|
| + EXPECT_FALSE(ptr);
|
| +
|
| + ptr.Bind(ScopedMessagePipeHandle());
|
| + EXPECT_FALSE(ptr.get());
|
| + EXPECT_FALSE(ptr);
|
| +}
|
| +
|
| TEST_F(InterfacePtrTest, EncounteredError) {
|
| math::CalculatorPtr proxy;
|
| MathCalculatorImpl calc_impl(GetProxy(&proxy));
|
|
|