Loading libs/binder/ndk/tests/libbinder_ndk_unit_test.cpp +4 −5 Original line number Diff line number Diff line Loading @@ -165,11 +165,10 @@ int lazyService(const char* instance) { return 1; // should not return } // This is too slow // TEST(NdkBinder, GetServiceThatDoesntExist) { // sp<IFoo> foo = IFoo::getService("asdfghkl;"); // EXPECT_EQ(nullptr, foo.get()); // } TEST(NdkBinder, GetServiceThatDoesntExist) { sp<IFoo> foo = IFoo::getService("asdfghkl;"); EXPECT_EQ(nullptr, foo.get()); } TEST(NdkBinder, CheckServiceThatDoesntExist) { AIBinder* binder = AServiceManager_checkService("asdfghkl;"); Loading Loading
libs/binder/ndk/tests/libbinder_ndk_unit_test.cpp +4 −5 Original line number Diff line number Diff line Loading @@ -165,11 +165,10 @@ int lazyService(const char* instance) { return 1; // should not return } // This is too slow // TEST(NdkBinder, GetServiceThatDoesntExist) { // sp<IFoo> foo = IFoo::getService("asdfghkl;"); // EXPECT_EQ(nullptr, foo.get()); // } TEST(NdkBinder, GetServiceThatDoesntExist) { sp<IFoo> foo = IFoo::getService("asdfghkl;"); EXPECT_EQ(nullptr, foo.get()); } TEST(NdkBinder, CheckServiceThatDoesntExist) { AIBinder* binder = AServiceManager_checkService("asdfghkl;"); Loading