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

Commit 84065ce9 authored by liuxiangjun's avatar liuxiangjun Committed by Automerger Merge Worker
Browse files

Return INVALID_ ARGUMENTS is the expected result am: 7ddd4781

parents 4a8f0746 7ddd4781
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -138,3 +138,7 @@ std::cv_status RadioResponseWaiter::wait() {
    count_--;
    count_--;
    return status;
    return status;
}
}

bool isLteConnected(){
    return testing::checkSubstringInCommandOutput("getprop gsm.network.type", "LTE");
}
+5 −0
Original line number Original line Diff line number Diff line
@@ -104,6 +104,11 @@ bool isVoiceEmergencyOnly(RegState state);
 */
 */
bool isVoiceInService(RegState state);
bool isVoiceInService(RegState state);


/*
 * Check if device is in Lte Connected status.
 */
bool isLteConnected();

/**
/**
 * Used when waiting for an asynchronous response from the HAL.
 * Used when waiting for an asynchronous response from the HAL.
 */
 */
+1 −1
Original line number Original line Diff line number Diff line
@@ -597,7 +597,7 @@ TEST_P(RadioHidlTest_v1_5, startNetworkScan) {
    } else if (cardStatus.base.base.base.cardState == CardState::PRESENT) {
    } else if (cardStatus.base.base.base.cardState == CardState::PRESENT) {
        // Modems support 3GPP RAT family need to
        // Modems support 3GPP RAT family need to
        // support scanning requests combined with some parameters.
        // support scanning requests combined with some parameters.
        if (deviceSupportsFeature(FEATURE_TELEPHONY_GSM)) {
        if (deviceSupportsFeature(FEATURE_TELEPHONY_GSM) && isLteConnected()) {
            ASSERT_TRUE(CheckAnyOfErrors(radioRsp_v1_5->rspInfo.error,
            ASSERT_TRUE(CheckAnyOfErrors(radioRsp_v1_5->rspInfo.error,
                                         {RadioError::NONE, RadioError::OPERATION_NOT_ALLOWED}));
                                         {RadioError::NONE, RadioError::OPERATION_NOT_ALLOWED}));
        } else {
        } else {
+4 −0
Original line number Original line Diff line number Diff line
@@ -227,3 +227,7 @@ void RadioServiceTest::updateSimSlotStatus(int physicalSlotId) {
        slotStatus = radioConfigRsp->simSlotStatus[physicalSlotId];
        slotStatus = radioConfigRsp->simSlotStatus[physicalSlotId];
    }
    }
}
}

bool isLteConnected(){
    return testing::checkSubstringInCommandOutput("getprop gsm.network.type", "LTE");
}
+5 −0
Original line number Original line Diff line number Diff line
@@ -128,6 +128,11 @@ bool isVoiceInService(RegState state);
 */
 */
bool isServiceValidForDeviceConfiguration(std::string& serviceName);
bool isServiceValidForDeviceConfiguration(std::string& serviceName);


/*
 * Check if device is in Lte Connected status.
 */
bool isLteConnected();

/**
/**
 * RadioServiceTest base class
 * RadioServiceTest base class
 */
 */
Loading