Fix GnssMeasurement state range check
Bug: 157463010 Test: atest VtsHalGnssV2_0TestTarget Change-Id: I72f4bf1f09d6271ac6367abc3972ee7747b18155
This commit is contained in:
parent
8fce7985c0
commit
15570c4681
1 changed files with 4 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue