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

Commit 8bba420d authored by Yu-Han Yang's avatar Yu-Han Yang
Browse files

Reset gnss_data_cbq_ before the 2nd request

Bug: 254763910
Test: atest VtsHalGnssTargetTest
Change-Id: I96db90bbb99e17b2134d9b901a9dfcd80c7a0269
parent 3ab0c3ac
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1514,6 +1514,7 @@ TEST_P(GnssHalTest, TestGnssMeasurementSetCallback) {
    collectMeasurementIntervals(callback, /* numEvents= */ 1, /* timeoutSeconds= */ 10, deltas);

    // setCallback at 1s interval and wait for 5 measurements
    callback->gnss_data_cbq_.reset();
    startMeasurementWithInterval(1000, iGnssMeasurement, callback);
    collectMeasurementIntervals(callback, /* numEvents= */ 5, /* timeoutSeconds= */ 10, deltas);