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

Commit baa9f95b authored by sandeepjs's avatar sandeepjs Committed by qianyou -
Browse files

update vts setSimCardPower test cases to handle different MEP

types
Bug: 351698476
Test: atest VtsHalRadioTargetTest

Change-Id: I233a12514afb39de32ba72e350d0a5dc94c98daf
Merged-In: I233a12514afb39de32ba72e350d0a5dc94c98daf
parent 70be0c43
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -111,10 +111,17 @@ TEST_P(RadioSimTest, setSimCardPower) {
        EXPECT_EQ(CardStatus::STATE_PRESENT, slotStatus.cardState);
        if (CardStatus::STATE_PRESENT == slotStatus.cardState) {
            ASSERT_TRUE(slotStatus.portInfo[0].portActive);
            if (cardStatus.supportedMepMode == aidl::android::hardware::radio::config::
                                                       MultipleEnabledProfilesMode::MEP_A1 ||
                cardStatus.supportedMepMode == aidl::android::hardware::radio::config::
                                                       MultipleEnabledProfilesMode::MEP_A2) {
                EXPECT_EQ(1, cardStatus.slotMap.portId);
            } else {
                EXPECT_EQ(0, cardStatus.slotMap.portId);
            }
        }
    }
}

/*
 * Test IRadioSim.setCarrierInfoForImsiEncryption() for the response returned.