Loading libs/binder/ndk/tests/libbinder_ndk_unit_test.cpp +15 −14 Original line number Diff line number Diff line Loading @@ -433,20 +433,21 @@ TEST(NdkBinder, GetLazyService) { EXPECT_EQ(STATUS_OK, AIBinder_ping(binder.get())); } TEST(NdkBinder, IsUpdatable) { bool isUpdatable = AServiceManager_isUpdatableViaApex("android.hardware.light.ILights/default"); EXPECT_EQ(isUpdatable, true); } TEST(NdkBinder, GetUpdatableViaApex) { std::optional<std::string> updatableViaApex; AServiceManager_getUpdatableApexName( "android.hardware.light.ILights/default", &updatableViaApex, [](const char* apexName, void* context) { *static_cast<std::optional<std::string>*>(context) = apexName; }); EXPECT_NE(updatableViaApex, std::nullopt) << *updatableViaApex; } // TEST(NdkBinder, IsUpdatable) { // bool isUpdatable = // AServiceManager_isUpdatableViaApex("android.hardware.light.ILights/default"); // EXPECT_EQ(isUpdatable, true); // } // // TEST(NdkBinder, GetUpdatableViaApex) { // std::optional<std::string> updatableViaApex; // AServiceManager_getUpdatableApexName( // "android.hardware.light.ILights/default", &updatableViaApex, // [](const char* apexName, void* context) { // *static_cast<std::optional<std::string>*>(context) = apexName; // }); // EXPECT_NE(updatableViaApex, std::nullopt) << *updatableViaApex; // } // This is too slow TEST(NdkBinder, CheckLazyServiceShutDown) { Loading Loading
libs/binder/ndk/tests/libbinder_ndk_unit_test.cpp +15 −14 Original line number Diff line number Diff line Loading @@ -433,20 +433,21 @@ TEST(NdkBinder, GetLazyService) { EXPECT_EQ(STATUS_OK, AIBinder_ping(binder.get())); } TEST(NdkBinder, IsUpdatable) { bool isUpdatable = AServiceManager_isUpdatableViaApex("android.hardware.light.ILights/default"); EXPECT_EQ(isUpdatable, true); } TEST(NdkBinder, GetUpdatableViaApex) { std::optional<std::string> updatableViaApex; AServiceManager_getUpdatableApexName( "android.hardware.light.ILights/default", &updatableViaApex, [](const char* apexName, void* context) { *static_cast<std::optional<std::string>*>(context) = apexName; }); EXPECT_NE(updatableViaApex, std::nullopt) << *updatableViaApex; } // TEST(NdkBinder, IsUpdatable) { // bool isUpdatable = // AServiceManager_isUpdatableViaApex("android.hardware.light.ILights/default"); // EXPECT_EQ(isUpdatable, true); // } // // TEST(NdkBinder, GetUpdatableViaApex) { // std::optional<std::string> updatableViaApex; // AServiceManager_getUpdatableApexName( // "android.hardware.light.ILights/default", &updatableViaApex, // [](const char* apexName, void* context) { // *static_cast<std::optional<std::string>*>(context) = apexName; // }); // EXPECT_NE(updatableViaApex, std::nullopt) << *updatableViaApex; // } // This is too slow TEST(NdkBinder, CheckLazyServiceShutDown) { Loading