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

Commit 75683b35 authored by Nazanin's avatar Nazanin
Browse files

add sim_err to vts test for setSimCardPower

Test: VTS
Bug: 191105273
Change-Id: I73ba86b4f0c93d6467d5af5c430e374cb01435bc
parent 98949afb
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -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,
    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::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,
    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::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