Retrieve the last SvInfo list in TestGnssSvInfoFields
Bug: 161313893 Test: atest VtsHalGnssV2_1TargetTest Change-Id: I687e5ff6edd1ef67dbfe046c401fd15b3da0c857
This commit is contained in:
parent
31c434b96c
commit
c8143625ba
1 changed files with 5 additions and 3 deletions
|
@ -247,8 +247,10 @@ TEST_P(GnssHalTest, TestGnssSvInfoFields) {
|
|||
ALOGD("Observed %d GnssSvStatus, while awaiting one location (%d received)",
|
||||
sv_info_list_cbq_size, location_called_count);
|
||||
|
||||
hidl_vec<IGnssCallback_2_1::GnssSvInfo> last_sv_info_list;
|
||||
ASSERT_TRUE(gnss_cb_->sv_info_list_cbq_.retrieve(last_sv_info_list, 1));
|
||||
// Get the last sv_info_list
|
||||
std::list<hidl_vec<IGnssCallback_2_1::GnssSvInfo>> sv_info_vec_list;
|
||||
gnss_cb_->sv_info_list_cbq_.retrieve(sv_info_vec_list, sv_info_list_cbq_size, 1);
|
||||
hidl_vec<IGnssCallback_2_1::GnssSvInfo> last_sv_info_list = sv_info_vec_list.back();
|
||||
|
||||
bool nonZeroCn0Found = false;
|
||||
for (auto sv_info : last_sv_info_list) {
|
||||
|
@ -673,4 +675,4 @@ TEST_P(GnssHalTest, TestGnssMeasurementCorrections) {
|
|||
iMeasurementCorrections->setCorrections_1_1(Utils::getMockMeasurementCorrections_1_1());
|
||||
ASSERT_TRUE(result.isOk());
|
||||
EXPECT_TRUE(result);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue