Merge "health 2.0 vts: Allow for battery-less devices"

This commit is contained in:
Treehugger Robot
2020-01-28 21:16:01 +00:00
committed by Gerrit Code Review

View File

@@ -315,9 +315,7 @@ TEST_P(HealthHidlTest, getEnergyCounter) {
TEST_P(HealthHidlTest, getChargeStatus) {
SKIP_IF_SKIPPED();
EXPECT_OK(mHealth->getChargeStatus([](auto result, auto value) {
EXPECT_VALID_OR_UNSUPPORTED_PROP(
result, toString(value),
value != BatteryStatus::UNKNOWN && verifyEnum<BatteryStatus>(value));
EXPECT_VALID_OR_UNSUPPORTED_PROP(result, toString(value), verifyEnum<BatteryStatus>(value));
}));
}