diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2020-05-26 19:54:56 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-05-26 19:54:56 +0000 |
commit | 6df119f6a90b11f845504ffb0187f317f4c38351 (patch) | |
tree | 332516ee5ea8279fa06478d71f0b111ad4e3962e /gnss/2.0 | |
parent | 5f0ce20538b6bd14dc00690e32c18d675194f411 (diff) | |
parent | 15570c468199ecb6368535109b47b036793fa38a (diff) | |
download | platform_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.cpp | 7 |
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(); |