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

Commit 183e6336 authored by Xiangyu/Malcolm Chen's avatar Xiangyu/Malcolm Chen Committed by Automerger Merge Worker
Browse files

Merge "Skip enableModem vts if in single SIM mode." into rvc-dev am:...

Merge "Skip enableModem vts if in single SIM mode." into rvc-dev am: 03725802 am: 5d04c3fe am: d102ca2b

Change-Id: I8c57d80c9a2f3200600c66aa26e1e76170ba5f8d
parents bf6fde15 d102ca2b
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

#include <radio_hidl_hal_utils_v1_3.h>
#include <vector>
#include "VtsCoreUtil.h"

#define ASSERT_OK(ret) ASSERT_TRUE(ret.isOk())

@@ -25,6 +26,15 @@
TEST_P(RadioHidlTest_v1_3, enableModem) {
    serial = GetRandomSerialNumber();

    bool isMultiSimEnabled =
            testing::checkSubstringInCommandOutput("getprop persist.radio.multisim.config",
                                                   "dsds") ||
            testing::checkSubstringInCommandOutput("getprop persist.radio.multisim.config", "tsts");
    if (!isMultiSimEnabled) {
        ALOGI("enableModem, no need to test in single SIM mode");
        return;
    }

    bool responseToggle = radioRsp_v1_3->enableModemResponseToggle;
    Return<void> res = radio_v1_3->enableModem(serial, true);
    ASSERT_OK(res);