Merge "Update TestGnssMeasurementIsFullTracking"

This commit is contained in:
TreeHugger Robot 2022-11-28 17:47:11 +00:00 committed by Android (Google) Code Review
commit 6c5ff2565f

View file

@ -489,7 +489,9 @@ void GnssHalTest::checkGnssDataFields(const sp<GnssMeasurementCallbackAidl>& cal
// Validity check GnssData fields
checkGnssMeasurementClockFields(lastGnssData);
if (aidl_gnss_hal_->getInterfaceVersion() >= 3) {
EXPECT_EQ(lastGnssData.isFullTracking, isFullTracking);
if (isFullTracking) {
EXPECT_EQ(lastGnssData.isFullTracking, isFullTracking);
}
}
for (const auto& measurement : lastGnssData.measurements) {
checkGnssMeasurementFields(measurement, lastGnssData);