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

Commit 8a3de69f authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk
Browse files

setCellularIdentifierTransparencyEnabled: skip on errors

Bug: 394351339
Test: VtsHalRadioTargetTest
Flag: TEST_ONLY
Change-Id: I3cba05d207f709f084792b5c271653b9cefd0eb9
parent 601c3e93
Loading
Loading
Loading
Loading
+18 −18
Original line number Diff line number Diff line
@@ -2552,8 +2552,8 @@ TEST_P(RadioNetworkTest, setCellularIdentifierTransparencyEnabled) {
    ASSERT_TRUE(CheckAnyOfErrors(radioRsp_network->rspInfo.error,
                                 {RadioError::NONE, RadioError::RADIO_NOT_AVAILABLE,
                                  RadioError::MODEM_ERR, RadioError::REQUEST_NOT_SUPPORTED}));
    if (radioRsp_network->rspInfo.error != RadioError::NONE) return;

    if (radioRsp_network->rspInfo.error == RadioError::NONE) {
    // Assert the value has changed
    serial = GetRandomSerialNumber();
    ndk::ScopedAStatus res = radio_network->isCellularIdentifierTransparencyEnabled(serial);
@@ -2565,16 +2565,16 @@ TEST_P(RadioNetworkTest, setCellularIdentifierTransparencyEnabled) {
    ASSERT_TRUE(CheckAnyOfErrors(radioRsp_network->rspInfo.error,
                                 {RadioError::NONE, RadioError::RADIO_NOT_AVAILABLE,
                                  RadioError::MODEM_ERR, RadioError::REQUEST_NOT_SUPPORTED}));
    if (radioRsp_network->rspInfo.error == RadioError::NONE) {
        EXPECT_EQ(valueToSet, radioRsp_network->isCellularIdentifierTransparencyEnabled);
    }

    // Reset original state
        radio_network->setCellularIdentifierTransparencyEnabled(serial,
                                                                originalTransparencySetting);
    radio_network->setCellularIdentifierTransparencyEnabled(serial, originalTransparencySetting);
    EXPECT_EQ(std::cv_status::no_timeout, wait());
    EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_network->rspInfo.type);
    EXPECT_EQ(serial, radioRsp_network->rspInfo.serial);
}
}

/*
 * Test IRadioNetwork.setSecurityAlgorithmsUpdatedEnabled for the response returned.