Loading libs/binder/ndk/tests/libbinder_ndk_unit_test.cpp +15 −14 Original line number Original line Diff line number Diff line Loading @@ -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) { Loading Loading
libs/binder/ndk/tests/libbinder_ndk_unit_test.cpp +15 −14 Original line number Original line Diff line number Diff line Loading @@ -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) { Loading