Update VTS tests so that more tests pass for O.
Cherry picked from ag/2562201 Bug: b/62926561 Test: vts tests Change-Id: Ic927f9efd437c6411fb14feac8c681334e4b5e60 Merged-in: Ic927f9efd437c6411fb14feac8c681334e4b5e60
This commit is contained in:
parent
5b41d1181a
commit
d7f198c9ab
5 changed files with 34 additions and 18 deletions
|
@ -79,7 +79,7 @@ TEST_F(RadioHidlTest, setupDataCall) {
|
|||
radioRsp->rspInfo.error == RadioError::RADIO_NOT_AVAILABLE ||
|
||||
radioRsp->rspInfo.error == RadioError::OP_NOT_ALLOWED_BEFORE_REG_TO_NW ||
|
||||
radioRsp->rspInfo.error == RadioError::OP_NOT_ALLOWED_DURING_VOICE_CALL ||
|
||||
CheckOEMError());
|
||||
radioRsp->rspInfo.error == RadioError::SIM_ABSENT || CheckOEMError());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -119,7 +119,8 @@ TEST_F(RadioHidlTest, getDataCallList) {
|
|||
|
||||
if (cardStatus.cardState == CardState::ABSENT) {
|
||||
ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::NONE ||
|
||||
radioRsp->rspInfo.error == RadioError::RADIO_NOT_AVAILABLE);
|
||||
radioRsp->rspInfo.error == RadioError::RADIO_NOT_AVAILABLE ||
|
||||
radioRsp->rspInfo.error == RadioError::SIM_ABSENT);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -317,6 +317,7 @@ TEST_F(RadioHidlTest, getIccCardStatus) {
|
|||
radioRsp->rspInfo.error == RadioError::INVALID_ARGUMENTS ||
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_SIM_STATE ||
|
||||
radioRsp->rspInfo.error == RadioError::PASSWORD_INCORRECT ||
|
||||
radioRsp->rspInfo.error == RadioError::INTERNAL_ERR);
|
||||
radioRsp->rspInfo.error == RadioError::INTERNAL_ERR ||
|
||||
radioRsp->rspInfo.error == RadioError::SIM_ABSENT);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -676,9 +676,11 @@ TEST_F(RadioHidlTest, startLceService) {
|
|||
EXPECT_EQ(serial, radioRsp->rspInfo.serial);
|
||||
|
||||
if (cardStatus.cardState == CardState::ABSENT) {
|
||||
std::cout << static_cast<int>(radioRsp->rspInfo.error) << std::endl;
|
||||
ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::RADIO_NOT_AVAILABLE ||
|
||||
radioRsp->rspInfo.error == RadioError::LCE_NOT_SUPPORTED ||
|
||||
radioRsp->rspInfo.error == RadioError::INTERNAL_ERR);
|
||||
radioRsp->rspInfo.error == RadioError::INTERNAL_ERR ||
|
||||
radioRsp->rspInfo.error == RadioError::SIM_ABSENT);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -696,7 +698,8 @@ TEST_F(RadioHidlTest, stopLceService) {
|
|||
if (cardStatus.cardState == CardState::ABSENT) {
|
||||
ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::NONE ||
|
||||
radioRsp->rspInfo.error == RadioError::LCE_NOT_SUPPORTED ||
|
||||
radioRsp->rspInfo.error == RadioError::REQUEST_NOT_SUPPORTED);
|
||||
radioRsp->rspInfo.error == RadioError::REQUEST_NOT_SUPPORTED ||
|
||||
radioRsp->rspInfo.error == RadioError::SIM_ABSENT);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -845,4 +848,4 @@ TEST_F(RadioHidlTest, setSimCardPower) {
|
|||
ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::NONE ||
|
||||
radioRsp->rspInfo.error == RadioError::REQUEST_NOT_SUPPORTED);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,7 +36,8 @@ TEST_F(RadioHidlTest, sendSms) {
|
|||
if (cardStatus.cardState == CardState::ABSENT) {
|
||||
ASSERT_TRUE(CheckGeneralError() ||
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_ARGUMENTS ||
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_STATE);
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_STATE ||
|
||||
radioRsp->rspInfo.error == RadioError::SIM_ABSENT);
|
||||
EXPECT_EQ(0, radioRsp->sendSmsResult.errorCode);
|
||||
}
|
||||
}
|
||||
|
@ -62,7 +63,8 @@ TEST_F(RadioHidlTest, sendSMSExpectMore) {
|
|||
if (cardStatus.cardState == CardState::ABSENT) {
|
||||
ASSERT_TRUE(CheckGeneralError() ||
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_ARGUMENTS ||
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_STATE);
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_STATE ||
|
||||
radioRsp->rspInfo.error == RadioError::SIM_ABSENT);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -145,7 +147,8 @@ TEST_F(RadioHidlTest, sendCdmaSms) {
|
|||
if (cardStatus.cardState == CardState::ABSENT) {
|
||||
ASSERT_TRUE(CheckGeneralError() ||
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_ARGUMENTS ||
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_STATE);
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_STATE ||
|
||||
radioRsp->rspInfo.error == RadioError::SIM_ABSENT);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -237,7 +240,8 @@ TEST_F(RadioHidlTest, getSmscAddress) {
|
|||
|
||||
if (cardStatus.cardState == CardState::ABSENT) {
|
||||
ASSERT_TRUE(CheckGeneralError() || radioRsp->rspInfo.error == RadioError::INVALID_STATE ||
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_MODEM_STATE);
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_MODEM_STATE ||
|
||||
radioRsp->rspInfo.error == RadioError::SIM_ABSENT);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -257,7 +261,8 @@ TEST_F(RadioHidlTest, setSmscAddress) {
|
|||
if (cardStatus.cardState == CardState::ABSENT) {
|
||||
ASSERT_TRUE(CheckGeneralError() ||
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_ARGUMENTS ||
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_SMS_FORMAT);
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_SMS_FORMAT ||
|
||||
radioRsp->rspInfo.error == RadioError::SIM_ABSENT);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -285,7 +290,8 @@ TEST_F(RadioHidlTest, writeSmsToSim) {
|
|||
radioRsp->rspInfo.error == RadioError::ENCODING_ERR ||
|
||||
radioRsp->rspInfo.error == RadioError::NO_RESOURCES ||
|
||||
radioRsp->rspInfo.error == RadioError::NETWORK_NOT_READY ||
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_SMSC_ADDRESS);
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_SMSC_ADDRESS ||
|
||||
radioRsp->rspInfo.error == RadioError::SIM_ABSENT);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -308,7 +314,8 @@ TEST_F(RadioHidlTest, deleteSmsOnSim) {
|
|||
radioRsp->rspInfo.error == RadioError::NONE ||
|
||||
radioRsp->rspInfo.error == RadioError::MODEM_ERR ||
|
||||
radioRsp->rspInfo.error == RadioError::NO_SUCH_ENTRY ||
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_MODEM_STATE);
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_MODEM_STATE ||
|
||||
radioRsp->rspInfo.error == RadioError::SIM_ABSENT);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -361,7 +368,8 @@ TEST_F(RadioHidlTest, writeSmsToRuim) {
|
|||
radioRsp->rspInfo.error == RadioError::NONE ||
|
||||
radioRsp->rspInfo.error == RadioError::MODEM_ERR ||
|
||||
radioRsp->rspInfo.error == RadioError::NO_SUCH_ENTRY ||
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_SMSC_ADDRESS);
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_SMSC_ADDRESS ||
|
||||
radioRsp->rspInfo.error == RadioError::SIM_ABSENT);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -413,7 +421,8 @@ TEST_F(RadioHidlTest, deleteSmsOnRuim) {
|
|||
radioRsp->rspInfo.error == RadioError::NONE ||
|
||||
radioRsp->rspInfo.error == RadioError::MODEM_ERR ||
|
||||
radioRsp->rspInfo.error == RadioError::NO_SUCH_ENTRY ||
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_MODEM_STATE);
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_MODEM_STATE ||
|
||||
radioRsp->rspInfo.error == RadioError::SIM_ABSENT);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -434,6 +443,7 @@ TEST_F(RadioHidlTest, reportSmsMemoryStatus) {
|
|||
ASSERT_TRUE(CheckGeneralError() ||
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_ARGUMENTS ||
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_STATE ||
|
||||
radioRsp->rspInfo.error == RadioError::MODEM_ERR);
|
||||
radioRsp->rspInfo.error == RadioError::MODEM_ERR ||
|
||||
radioRsp->rspInfo.error == RadioError::SIM_ABSENT);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -121,6 +121,7 @@ TEST_F(RadioHidlTest, sendEnvelopeWithStatus) {
|
|||
if (cardStatus.cardState == CardState::ABSENT) {
|
||||
ASSERT_TRUE(CheckGeneralError() ||
|
||||
radioRsp->rspInfo.error == RadioError::INVALID_ARGUMENTS ||
|
||||
radioRsp->rspInfo.error == RadioError::MODEM_ERR);
|
||||
radioRsp->rspInfo.error == RadioError::MODEM_ERR ||
|
||||
radioRsp->rspInfo.error == RadioError::SIM_ABSENT);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue