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

Commit 1dfe4f46 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Check API values only if modem supports APIs" into main

parents c9ec2acc 9462aabb
Loading
Loading
Loading
Loading
+37 −32
Original line number Diff line number Diff line
@@ -2494,6 +2494,7 @@ TEST_P(RadioNetworkTest, setCellularIdentifierTransparencyEnabled) {
                                 {RadioError::NONE, RadioError::RADIO_NOT_AVAILABLE,
                                  RadioError::MODEM_ERR, RadioError::REQUEST_NOT_SUPPORTED}));

    if (radioRsp_network->rspInfo.error == RadioError::NONE) {
        // Assert the value has changed
        serial = GetRandomSerialNumber();
        ndk::ScopedAStatus res = radio_network->isCellularIdentifierTransparencyEnabled(serial);
@@ -2508,11 +2509,13 @@ TEST_P(RadioNetworkTest, setCellularIdentifierTransparencyEnabled) {
        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.
@@ -2547,6 +2550,7 @@ TEST_P(RadioNetworkTest, setSecurityAlgorithmsUpdatedEnabled) {
                                 {RadioError::NONE, RadioError::RADIO_NOT_AVAILABLE,
                                  RadioError::MODEM_ERR, RadioError::REQUEST_NOT_SUPPORTED}));

    if (radioRsp_network->rspInfo.error == RadioError::NONE) {
        // Assert the value has changed
        serial = GetRandomSerialNumber();
        ndk::ScopedAStatus res = radio_network->isSecurityAlgorithmsUpdatedEnabled(serial);
@@ -2566,6 +2570,7 @@ TEST_P(RadioNetworkTest, setSecurityAlgorithmsUpdatedEnabled) {
        EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp_network->rspInfo.type);
        EXPECT_EQ(serial, radioRsp_network->rspInfo.serial);
    }
}

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