Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a452b652 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "libbinder_ndk: re-enable unit test case GetServiceThatDoesntExist"

parents 9790d930 54b9dcbf
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -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;");