libbinder_ndk_unit_test: fix after light install
This test assumes what is installed on CF. Fixing cases for
now, will keep bug open to de-couple the test.
Bug: 300548972
Test: libbinder_ndk_unit_test (fails w/o, passes w/)
Change-Id: I4160497c1e384b862d07071df9377ecf98b605eb
diff --git a/libs/binder/ndk/tests/libbinder_ndk_unit_test.cpp b/libs/binder/ndk/tests/libbinder_ndk_unit_test.cpp
index 25b8e97..47439b8 100644
--- a/libs/binder/ndk/tests/libbinder_ndk_unit_test.cpp
+++ b/libs/binder/ndk/tests/libbinder_ndk_unit_test.cpp
@@ -435,7 +435,7 @@
TEST(NdkBinder, IsUpdatable) {
bool isUpdatable = AServiceManager_isUpdatableViaApex("android.hardware.light.ILights/default");
- EXPECT_EQ(isUpdatable, false);
+ EXPECT_EQ(isUpdatable, true);
}
TEST(NdkBinder, GetUpdatableViaApex) {
@@ -445,7 +445,7 @@
[](const char* apexName, void* context) {
*static_cast<std::optional<std::string>*>(context) = apexName;
});
- EXPECT_EQ(updatableViaApex, std::nullopt) << *updatableViaApex;
+ EXPECT_NE(updatableViaApex, std::nullopt) << *updatableViaApex;
}
// This is too slow