Merge "libbinder_ndk_unit_test: disable after light install" into main am: 748848b7fc am: 565fa51b04 am: 27ace0d2d6 am: 4843659a03
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2755672
Change-Id: I441528f05aa4d5c472bf72f33e6fa6118b7d45bf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/libs/binder/ndk/tests/libbinder_ndk_unit_test.cpp b/libs/binder/ndk/tests/libbinder_ndk_unit_test.cpp
index 47439b8..3724fa1 100644
--- a/libs/binder/ndk/tests/libbinder_ndk_unit_test.cpp
+++ b/libs/binder/ndk/tests/libbinder_ndk_unit_test.cpp
@@ -433,20 +433,21 @@
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) {