From 0f4a388a9a5a2bd2b13dfc118ee0523adaab04ce Mon Sep 17 00:00:00 2001 From: Yu-Han Yang Date: Mon, 5 Feb 2018 13:48:55 -0800 Subject: [PATCH] Add VTS test for checking upper bounds of GnssDebug uncertainties Test: copy to v1.0 and run vts on sailfish Change-Id: Ia15369db2a1e3243f0f2fff54ab5dc3ce917929c --- gnss/1.1/vts/functional/gnss_hal_test_cases.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gnss/1.1/vts/functional/gnss_hal_test_cases.cpp b/gnss/1.1/vts/functional/gnss_hal_test_cases.cpp index 0b27922c72..264a11db8b 100644 --- a/gnss/1.1/vts/functional/gnss_hal_test_cases.cpp +++ b/gnss/1.1/vts/functional/gnss_hal_test_cases.cpp @@ -429,23 +429,26 @@ TEST_F(GnssHalTest, GnssDebugValuesSanityTest) { EXPECT_GE(data.position.bearingDegrees, -360); EXPECT_LE(data.position.bearingDegrees, 360); - EXPECT_GE(data.position.horizontalAccuracyMeters, 0); + EXPECT_GT(data.position.horizontalAccuracyMeters, 0); EXPECT_LE(data.position.horizontalAccuracyMeters, 20000000); - EXPECT_GE(data.position.verticalAccuracyMeters, 0); + EXPECT_GT(data.position.verticalAccuracyMeters, 0); EXPECT_LE(data.position.verticalAccuracyMeters, 20000); - EXPECT_GE(data.position.speedAccuracyMetersPerSecond, 0); + EXPECT_GT(data.position.speedAccuracyMetersPerSecond, 0); EXPECT_LE(data.position.speedAccuracyMetersPerSecond, 500); - EXPECT_GE(data.position.bearingAccuracyDegrees, 0); + EXPECT_GT(data.position.bearingAccuracyDegrees, 0); EXPECT_LE(data.position.bearingAccuracyDegrees, 180); 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); + EXPECT_LE(data.time.frequencyUncertaintyNsPerSec, 2.0e5); // 200 ppm } }