mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Skip TestGnssPowerIndication if capability is not supported am: 5da610c660
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2397741 Change-Id: I874c8f080db515cb36d3a0c5bf288b34d0fa0a9c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -526,6 +526,11 @@ TEST_P(GnssHalTest, TestGnssPowerIndication) {
|
||||
|
||||
EXPECT_EQ(gnssPowerIndicationCallback->capabilities_cbq_.calledCount(), 1);
|
||||
|
||||
if (gnssPowerIndicationCallback->last_capabilities_ == 0) {
|
||||
// Skipping the test since GnssPowerIndication is not supported.
|
||||
return;
|
||||
}
|
||||
|
||||
// Request and verify a GnssPowerStats is received
|
||||
gnssPowerIndicationCallback->gnss_power_stats_cbq_.reset();
|
||||
iGnssPowerIndication->requestGnssPowerStats();
|
||||
|
||||
Reference in New Issue
Block a user