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

Commit 0c42690c authored by Shuo Qian's avatar Shuo Qian Committed by Automerger Merge Worker
Browse files

Config the number of live modems based on current multisim number. am: 400ce4ff am: 4136d05f

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15924337

Change-Id: I1dfaaa677fb95ef22a51898d3fb18c713d35aee6
parents bad64dbe 4136d05f
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -58,7 +58,16 @@ TEST_P(RadioConfigHidlTest, setModemsConfig_invalidArgument) {
TEST_P(RadioConfigHidlTest, setModemsConfig_goodRequest) {
    serial = GetRandomSerialNumber();
    ModemsConfig* mConfig = new ModemsConfig();
    if (isSsSsEnabled()) {
        mConfig->numOfLiveModems = 1;
    } else if (isDsDsEnabled()) {
        mConfig->numOfLiveModems = 2;
    } else if (isTsTsEnabled()) {
        mConfig->numOfLiveModems = 3;
    } else {
        ALOGI("Skipping setModemsConfig_goodRequest, unsupported multisim number");
        return;
    }
    Return<void> res = radioConfig->setModemsConfig(serial, *mConfig);
    ASSERT_OK(res);
    EXPECT_EQ(std::cv_status::no_timeout, wait());