mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Config the number of live modems based on current multisim number.
Test: atest VtsHalRadioConfigV1_1TargetTest Bug: 200889748 Change-Id: If2aca6add38b801be011797c1da4c8de32f1bef6
This commit is contained in:
@@ -58,7 +58,16 @@ TEST_P(RadioConfigHidlTest, setModemsConfig_invalidArgument) {
|
||||
TEST_P(RadioConfigHidlTest, setModemsConfig_goodRequest) {
|
||||
serial = GetRandomSerialNumber();
|
||||
ModemsConfig* mConfig = new ModemsConfig();
|
||||
mConfig->numOfLiveModems = 1;
|
||||
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());
|
||||
|
||||
Reference in New Issue
Block a user