Add REQUEST_NOT_SUPPORTED for pin and pin2 Icc VTS

Bug: 111222834
Test: sanity
Change-Id: Ia3b96e83d6173c2c80bdbf7763a876883b167af9
Merged-In: Ia3b96e83d6173c2c80bdbf7763a876883b167af9
(cherry picked from commit c0a06f34c8)
This commit is contained in:
sqian 2018-07-12 16:30:24 -07:00
parent 8c6d7225c9
commit 3c608789e0

View file

@ -44,7 +44,9 @@ TEST_F(RadioHidlTest, supplyIccPinForApp) {
EXPECT_EQ(std::cv_status::no_timeout, wait()); EXPECT_EQ(std::cv_status::no_timeout, wait());
EXPECT_EQ(serial, radioRsp->rspInfo.serial); EXPECT_EQ(serial, radioRsp->rspInfo.serial);
EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp->rspInfo.type); EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp->rspInfo.type);
EXPECT_EQ(RadioError::PASSWORD_INCORRECT, radioRsp->rspInfo.error); ASSERT_TRUE(CheckAnyOfErrors(
radioRsp->rspInfo.error,
{RadioError::PASSWORD_INCORRECT, RadioError::REQUEST_NOT_SUPPORTED}));
} }
} }
} }
@ -90,8 +92,10 @@ TEST_F(RadioHidlTest, supplyIccPin2ForApp) {
EXPECT_EQ(std::cv_status::no_timeout, wait()); EXPECT_EQ(std::cv_status::no_timeout, wait());
EXPECT_EQ(serial, radioRsp->rspInfo.serial); EXPECT_EQ(serial, radioRsp->rspInfo.serial);
EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp->rspInfo.type); EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp->rspInfo.type);
ASSERT_TRUE(CheckAnyOfErrors(radioRsp->rspInfo.error, ASSERT_TRUE(
{RadioError::PASSWORD_INCORRECT, RadioError::SIM_PUK2})); CheckAnyOfErrors(radioRsp->rspInfo.error,
{RadioError::PASSWORD_INCORRECT, RadioError::REQUEST_NOT_SUPPORTED,
RadioError::SIM_PUK2}));
} }
} }
} }