mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 10:05:19 +00:00
Skip TestGnssPowerIndication if capability is not supported
Bug: 263354944 Test: atest VtsHalGnssTargetTest Change-Id: I372ca2f2fb4cb5d4cafbacc1bde1cc0f0f2077dd
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