mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
health 2.0 vts: Allow for battery-less devices
Battery-less devices reports UNKNOWN for getChargeStatus.
Allow it.
Bug: 148425928
Test: on cuttlefish
Change-Id: I06dd2841d43cab9528209d0bfd61969a8f2409c8
(cherry picked from commit 5ac6f5bc99)
This commit is contained in:
@@ -331,9 +331,7 @@ TEST_F(HealthHidlTest, getEnergyCounter) {
|
||||
TEST_F(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));
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user