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

Commit 2b8ce053 authored by Brad Ebinger's avatar Brad Ebinger
Browse files

Update tests to ensure WFC mode is set correctly in roaming

Bug: 80168790
Test: atest FrameworksTelephonyTests:ImsManagerTest
Change-Id: I7e706936e6fe2338dbb38fa5c5f687baf058bb6f
Merged-In: Ide3911f043d5eda6380210dec513d259312fc646
parent acd09f04
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -318,10 +318,11 @@ public class ImsManagerTest extends TelephonyTest {
        doReturn(true).when(mTelephonyManager).isNetworkRoaming(eq(mSubId[0]));
        // Turn on WFC
        imsManager.setWfcSetting(true);
        // Roaming mode (WIFI_PREFERRED) should be set. With 1000 ms timeout.
        // User defined setting for Roaming mode (WIFI_ONLY) should be set independent of whether or
        // not WFC mode is editable. With 1000 ms timeout.
        verify(mImsConfigImplBaseMock, timeout(1000)).setConfig(
                eq(ImsConfig.ConfigConstants.VOICE_OVER_WIFI_MODE),
                eq(WFC_IMS_ROAMING_MODE_DEFAULT_VAL));
                eq(ImsConfig.WfcModeFeatureValueConstants.WIFI_ONLY));

        // Not roaming
        doReturn(false).when(mTelephonyManager).isNetworkRoaming(eq(mSubId[0]));