Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af1fd9d4 authored by Cassie's avatar Cassie Committed by android-build-merger
Browse files

Merge "Add VTS test for getCellInfoList_1_2" am: 6a83645f

am: a56b4090

Change-Id: Ic6841e7d46b02c271e56db91cf9be6a4bc0c69fe
parents f6f98375 a56b4090
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -655,3 +655,21 @@ TEST_F(RadioHidlTest_v1_2, deactivateDataCall_1_2) {
             RadioError::REQUEST_NOT_SUPPORTED, RadioError::CANCELLED}));
    }
}

/*
 * Test IRadio.getCellInfoList() for the response returned.
 */
TEST_F(RadioHidlTest_v1_2, getCellInfoList_1_2) {
    int serial = GetRandomSerialNumber();

    Return<void> res = radio_v1_2->getCellInfoList(serial);
    ASSERT_OK(res);
    EXPECT_EQ(std::cv_status::no_timeout, wait());
    EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_2->rspInfo.type);
    EXPECT_EQ(serial, radioRsp_v1_2->rspInfo.serial);

    ALOGI("getCellInfoList_1_2, rspInfo.error = %s\n",
          toString(radioRsp_v1_2->rspInfo.error).c_str());
    ASSERT_TRUE(CheckAnyOfErrors(radioRsp_v1_2->rspInfo.error,
                                 {RadioError::NONE, RadioError::NO_NETWORK_FOUND}));
}