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

Commit 92dfa7b2 authored by Sarah Chin's avatar Sarah Chin
Browse files

Fix CDMA roaming and subscription mode tests

ag/12960261 fixed the robotests but not the unit tests

Test: atest
Fix: 172900794
Change-Id: I871c93f46da3df4b544f2267a15c930cb679901e
parent 26bf130b
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@ package com.android.settings.network.telephony.cdma;

import static com.google.common.truth.Truth.assertThat;

import static org.mockito.ArgumentMatchers.anyInt;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.when;
@@ -81,8 +80,6 @@ public class CdmaSubscriptionPreferenceControllerTest {

    @Test
    public void onPreferenceChange_selectNV_returnNVMode() {
        doReturn(true).when(mTelephonyManager).setCdmaSubscriptionMode(anyInt());

        mController.onPreferenceChange(mPreference, Integer.toString(
                TelephonyManager.CDMA_SUBSCRIPTION_NV));

+0 −2
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@ package com.android.settings.network.telephony.cdma;

import static com.google.common.truth.Truth.assertThat;

import static org.mockito.ArgumentMatchers.anyInt;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.when;
@@ -94,7 +93,6 @@ public class CdmaSystemSelectPreferenceControllerTest {
        Settings.Global.putInt(mContext.getContentResolver(),
                Settings.Global.CDMA_ROAMING_MODE,
                TelephonyManager.CDMA_ROAMING_MODE_ANY);
        doReturn(true).when(mTelephonyManager).setCdmaRoamingMode(anyInt());

        mController.onPreferenceChange(mPreference,
                Integer.toString(TelephonyManager.CDMA_ROAMING_MODE_HOME));