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

Commit 748848b7 authored by Steven Moreland's avatar Steven Moreland Committed by Gerrit Code Review
Browse files

Merge "libbinder_ndk_unit_test: disable after light install" into main

parents 9a7f6c17 c8ed73fc
Loading
Loading
Loading
Loading
+15 −14
Original line number Original line Diff line number Diff line
@@ -433,20 +433,21 @@ TEST(NdkBinder, GetLazyService) {
    EXPECT_EQ(STATUS_OK, AIBinder_ping(binder.get()));
    EXPECT_EQ(STATUS_OK, AIBinder_ping(binder.get()));
}
}


TEST(NdkBinder, IsUpdatable) {
// TEST(NdkBinder, IsUpdatable) {
    bool isUpdatable = AServiceManager_isUpdatableViaApex("android.hardware.light.ILights/default");
//     bool isUpdatable =
    EXPECT_EQ(isUpdatable, true);
//     AServiceManager_isUpdatableViaApex("android.hardware.light.ILights/default");
}
//     EXPECT_EQ(isUpdatable, true);

// }
TEST(NdkBinder, GetUpdatableViaApex) {
//
    std::optional<std::string> updatableViaApex;
// TEST(NdkBinder, GetUpdatableViaApex) {
    AServiceManager_getUpdatableApexName(
//     std::optional<std::string> updatableViaApex;
            "android.hardware.light.ILights/default", &updatableViaApex,
//     AServiceManager_getUpdatableApexName(
            [](const char* apexName, void* context) {
//             "android.hardware.light.ILights/default", &updatableViaApex,
                *static_cast<std::optional<std::string>*>(context) = apexName;
//             [](const char* apexName, void* context) {
            });
//                 *static_cast<std::optional<std::string>*>(context) = apexName;
    EXPECT_NE(updatableViaApex, std::nullopt) << *updatableViaApex;
//             });
}
//     EXPECT_NE(updatableViaApex, std::nullopt) << *updatableViaApex;
// }


// This is too slow
// This is too slow
TEST(NdkBinder, CheckLazyServiceShutDown) {
TEST(NdkBinder, CheckLazyServiceShutDown) {