Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b93cc647 authored by Sanket Padawe's avatar Sanket Padawe Committed by android-build-merger
Browse files

Merge "Fix test case for setSimCardPower radio api." am: 6287508a

am: 23494025

Change-Id: Ie8739196731304853f18172a730af8a7c11346e7
parents f56965a9 23494025
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -1811,7 +1811,6 @@ interface IRadioResponse {
     *   RadioError:NONE
     *   RadioError:NONE
     *   RadioError:RADIO_NOT_AVAILABLE
     *   RadioError:RADIO_NOT_AVAILABLE
     *   RadioError:REQUEST_NOT_SUPPORTED
     *   RadioError:REQUEST_NOT_SUPPORTED
     *   RadioError:SIM_ABSENT
     *   RadioError:INVALID_ARGUMENTS
     *   RadioError:INVALID_ARGUMENTS
     */
     */
    oneway setSimCardPowerResponse(RadioResponseInfo info);
    oneway setSimCardPowerResponse(RadioResponseInfo info);
+2 −1
Original line number Original line Diff line number Diff line
@@ -787,6 +787,7 @@ TEST_F(RadioHidlTest, setSimCardPower) {
  EXPECT_EQ(serial, radioRsp->rspInfo.serial);
  EXPECT_EQ(serial, radioRsp->rspInfo.serial);


  if (cardStatus.cardState == CardState::ABSENT) {
  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);
  }
  }
}
}
 No newline at end of file