Add GNSS VTS test for IGnssDebug.TimeDebug values sanity check

Bug: 36567271

Test: Copied the change to v1.0 and tested on Walleye.

Change-Id: I891ac655738cea72a67406dce954bbce34fc03ad
This commit is contained in:
Yu-Han Yang
2018-01-29 14:34:42 -08:00
parent 3e2f90f9ca
commit de41625b4e

View File

@@ -443,5 +443,9 @@ TEST_F(GnssHalTest, GnssDebugValuesSanityTest) {
EXPECT_GE(data.position.ageSeconds, 0);
}
EXPECT_GE(data.time.timeEstimate, 1514764800000); // Jan 01 2018 00:00:00
EXPECT_GT(data.time.timeUncertaintyNs, 0);
EXPECT_GT(data.time.frequencyUncertaintyNsPerSec, 0);
}
}