add sim_err to vts test for setSimCardPower am: 75683b35dd
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1738793 Change-Id: I70777bae53456c5283d48c49cb1db9b7614c65b0
This commit is contained in:
commit
cac2bbf9af
1 changed files with 10 additions and 10 deletions
|
@ -545,11 +545,11 @@ TEST_P(RadioHidlTest_v1_6, setSimCardPower_1_6) {
|
|||
EXPECT_EQ(std::cv_status::no_timeout, wait());
|
||||
EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_6->rspInfo.type);
|
||||
EXPECT_EQ(serial, radioRsp_v1_6->rspInfo.serial);
|
||||
ASSERT_TRUE(
|
||||
CheckAnyOfErrors(radioRsp_v1_6->rspInfo.error,
|
||||
{::android::hardware::radio::V1_6::RadioError::NONE,
|
||||
::android::hardware::radio::V1_6::RadioError::INVALID_ARGUMENTS,
|
||||
::android::hardware::radio::V1_6::RadioError::RADIO_NOT_AVAILABLE}));
|
||||
ASSERT_TRUE(CheckAnyOfErrors(radioRsp_v1_6->rspInfo.error,
|
||||
{::android::hardware::radio::V1_6::RadioError::NONE,
|
||||
::android::hardware::radio::V1_6::RadioError::INVALID_ARGUMENTS,
|
||||
::android::hardware::radio::V1_6::RadioError::RADIO_NOT_AVAILABLE,
|
||||
::android::hardware::radio::V1_6::RadioError::SIM_ERR}));
|
||||
|
||||
// setSimCardPower_1_6 does not return until the request is handled, and should not trigger
|
||||
// CardState::ABSENT when turning off power
|
||||
|
@ -567,11 +567,11 @@ TEST_P(RadioHidlTest_v1_6, setSimCardPower_1_6) {
|
|||
EXPECT_EQ(std::cv_status::no_timeout, wait());
|
||||
EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_6->rspInfo.type);
|
||||
EXPECT_EQ(serial, radioRsp_v1_6->rspInfo.serial);
|
||||
ASSERT_TRUE(
|
||||
CheckAnyOfErrors(radioRsp_v1_6->rspInfo.error,
|
||||
{::android::hardware::radio::V1_6::RadioError::NONE,
|
||||
::android::hardware::radio::V1_6::RadioError::INVALID_ARGUMENTS,
|
||||
::android::hardware::radio::V1_6::RadioError::RADIO_NOT_AVAILABLE}));
|
||||
ASSERT_TRUE(CheckAnyOfErrors(radioRsp_v1_6->rspInfo.error,
|
||||
{::android::hardware::radio::V1_6::RadioError::NONE,
|
||||
::android::hardware::radio::V1_6::RadioError::INVALID_ARGUMENTS,
|
||||
::android::hardware::radio::V1_6::RadioError::RADIO_NOT_AVAILABLE,
|
||||
::android::hardware::radio::V1_6::RadioError::SIM_ERR}));
|
||||
|
||||
// setSimCardPower_1_6 does not return until the request is handled. Just verify that we still
|
||||
// have CardState::PRESENT after turning the power back on
|
||||
|
|
Loading…
Reference in a new issue