Fix GnssMeasurement state range check

Bug: 157463010
Test: atest VtsHalGnssV2_0TestTarget
Change-Id: I72f4bf1f09d6271ac6367abc3972ee7747b18155
This commit is contained in:
Yu-Han Yang 2020-05-26 10:54:25 -07:00
parent 8fce7985c0
commit 15570c4681

View file

@ -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();