Add vts for getSignalStrength_1_4
Test: VTS Bug: 124013054 Change-Id: Ia23391970d2c333b128ab8d2990d231e62748789
This commit is contained in:
parent
3cdb31ee57
commit
7042a1aa9d
1 changed files with 20 additions and 0 deletions
|
@ -439,6 +439,26 @@ TEST_F(RadioHidlTest_v1_4, startNetworkScan_GoodRequest2) {
|
|||
{RadioError::NONE, RadioError::INVALID_ARGUMENTS}));
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Test IRadio.getSignalStrength_1_4() for the response returned.
|
||||
*/
|
||||
TEST_F(RadioHidlTest_v1_4, getSignalStrength_1_4) {
|
||||
serial = GetRandomSerialNumber();
|
||||
|
||||
radio_v1_4->getSignalStrength_1_4(serial);
|
||||
EXPECT_EQ(std::cv_status::no_timeout, wait());
|
||||
EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_v1_4->rspInfo.type);
|
||||
EXPECT_EQ(serial, radioRsp_v1_4->rspInfo.serial);
|
||||
|
||||
if (cardStatus.base.base.cardState == CardState::ABSENT) {
|
||||
EXPECT_EQ(RadioError::NONE, radioRsp_v1_4->rspInfo.error);
|
||||
} else if (cardStatus.base.base.cardState == CardState::PRESENT) {
|
||||
ASSERT_TRUE(CheckAnyOfErrors(radioRsp_v1_4->rspInfo.error,
|
||||
{RadioError::NONE, RadioError::RADIO_NOT_AVAILABLE}));
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Test IRadio.setupDataCall_1_4() for the response returned.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue