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

Commit 54b9dcbf authored by Devin Moore's avatar Devin Moore
Browse files

libbinder_ndk: re-enable unit test case GetServiceThatDoesntExist

It was previously commented out because it took too much time, but it is
a good test case to have.

Test: atest libbinder_ndk_unit_tests
Change-Id: Icc148e46e40eaa5c746656c88aa79eb33223a4fd
parent db3e5bb0
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;");