Merge "Fix test case for setSimCardPower radio api." into oc-dev

am: c10abf09f7

Change-Id: I619a75a39881d7f7b93a0aa4d3a9e6d8c19095be
This commit is contained in:
Sanket Padawe
2017-04-19 03:07:27 +00:00
committed by android-build-merger
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);
}
}