diff options
author | sqian <shuoq@google.com> | 2018-07-12 16:30:24 -0700 |
---|---|---|
committer | sqian <shuoq@google.com> | 2018-07-12 16:30:24 -0700 |
commit | c0a06f34c88cf9dc017be6178113b35c3c7fc67e (patch) | |
tree | 2c8478ec05a45400245eb672e70b9e7b6ec9cb19 | |
parent | bef00fe1af7e9fde15d4235e64b9c483c780e523 (diff) | |
download | platform_hardware_interfaces-c0a06f34c88cf9dc017be6178113b35c3c7fc67e.tar.gz platform_hardware_interfaces-c0a06f34c88cf9dc017be6178113b35c3c7fc67e.tar.bz2 platform_hardware_interfaces-c0a06f34c88cf9dc017be6178113b35c3c7fc67e.zip |
Add REQUEST_NOT_SUPPORTED for pin and pin2 Icc VTS
Bug: 111222834
Test: sanity
Change-Id: Ia3b96e83d6173c2c80bdbf7763a876883b167af9
-rw-r--r-- | radio/1.0/vts/functional/radio_hidl_hal_icc.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/radio/1.0/vts/functional/radio_hidl_hal_icc.cpp b/radio/1.0/vts/functional/radio_hidl_hal_icc.cpp index 308a882a89..5042c071e8 100644 --- a/radio/1.0/vts/functional/radio_hidl_hal_icc.cpp +++ b/radio/1.0/vts/functional/radio_hidl_hal_icc.cpp @@ -44,7 +44,9 @@ TEST_F(RadioHidlTest, supplyIccPinForApp) { EXPECT_EQ(std::cv_status::no_timeout, wait()); EXPECT_EQ(serial, radioRsp->rspInfo.serial); 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(serial, radioRsp->rspInfo.serial); EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp->rspInfo.type); - ASSERT_TRUE(CheckAnyOfErrors(radioRsp->rspInfo.error, - {RadioError::PASSWORD_INCORRECT, RadioError::SIM_PUK2})); + ASSERT_TRUE( + CheckAnyOfErrors(radioRsp->rspInfo.error, + {RadioError::PASSWORD_INCORRECT, RadioError::REQUEST_NOT_SUPPORTED, + RadioError::SIM_PUK2})); } } } |