mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Fix test case for setSimCardPower radio api."
This commit is contained in:
@@ -1811,7 +1811,6 @@ interface IRadioResponse {
|
||||
* RadioError:NONE
|
||||
* RadioError:RADIO_NOT_AVAILABLE
|
||||
* RadioError:REQUEST_NOT_SUPPORTED
|
||||
* RadioError:SIM_ABSENT
|
||||
* RadioError:INVALID_ARGUMENTS
|
||||
*/
|
||||
oneway setSimCardPowerResponse(RadioResponseInfo info);
|
||||
|
||||
@@ -787,6 +787,7 @@ TEST_F(RadioHidlTest, setSimCardPower) {
|
||||
EXPECT_EQ(serial, radioRsp->rspInfo.serial);
|
||||
|
||||
if (cardStatus.cardState == CardState::ABSENT) {
|
||||
ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::SIM_ABSENT);
|
||||
ASSERT_TRUE(radioRsp->rspInfo.error == RadioError::NONE ||
|
||||
radioRsp->rspInfo.error == RadioError::REQUEST_NOT_SUPPORTED);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user