Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5da610c6 authored by Yu-Han Yang's avatar Yu-Han Yang
Browse files

Skip TestGnssPowerIndication if capability is not supported

Bug: 263354944
Test: atest VtsHalGnssTargetTest
Change-Id: I372ca2f2fb4cb5d4cafbacc1bde1cc0f0f2077dd
parent 2f27d9e8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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();