summaryrefslogtreecommitdiffstats
path: root/gnss/2.0
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-05-26 19:54:56 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-05-26 19:54:56 +0000
commit6df119f6a90b11f845504ffb0187f317f4c38351 (patch)
tree332516ee5ea8279fa06478d71f0b111ad4e3962e /gnss/2.0
parent5f0ce20538b6bd14dc00690e32c18d675194f411 (diff)
parent15570c468199ecb6368535109b47b036793fa38a (diff)
downloadplatform_hardware_interfaces-6df119f6a90b11f845504ffb0187f317f4c38351.tar.gz
platform_hardware_interfaces-6df119f6a90b11f845504ffb0187f317f4c38351.tar.bz2
platform_hardware_interfaces-6df119f6a90b11f845504ffb0187f317f4c38351.zip
Merge "Fix GnssMeasurement state range check" into rvc-dev
Diffstat (limited to 'gnss/2.0')
-rw-r--r--gnss/2.0/vts/functional/gnss_hal_test_cases.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/gnss/2.0/vts/functional/gnss_hal_test_cases.cpp b/gnss/2.0/vts/functional/gnss_hal_test_cases.cpp
index c93e89b843..094c7c1e54 100644
--- a/gnss/2.0/vts/functional/gnss_hal_test_cases.cpp
+++ b/gnss/2.0/vts/functional/gnss_hal_test_cases.cpp
@@ -223,9 +223,10 @@ TEST_P(GnssHalTest, TestGnssMeasurementFields) {
static_cast<uint32_t>(measurement.state) >=
static_cast<uint32_t>(IGnssMeasurementCallback_2_0::GnssMeasurementState::
STATE_UNKNOWN) &&
- static_cast<uint32_t>(measurement.state) <=
- static_cast<uint32_t>(IGnssMeasurementCallback_2_0::GnssMeasurementState::
- STATE_2ND_CODE_LOCK));
+ static_cast<uint32_t>(measurement.state) <
+ (static_cast<uint32_t>(IGnssMeasurementCallback_2_0::GnssMeasurementState::
+ STATE_2ND_CODE_LOCK)
+ << 1));
}
iGnssMeasurement->close();