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

Commit 60d0e7a8 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix ReturnValueIgnored errorprone issues" into main

parents fbc1b0d8 d96c7f20
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -901,7 +901,7 @@ public class InternetDialogDelegateControllerTest extends SysuiTestCase {


        // 1st time is onStart(), 2nd time is getActiveAutoSwitchNonDdsSubId()
        // 1st time is onStart(), 2nd time is getActiveAutoSwitchNonDdsSubId()
        verify(mTelephonyManager, times(2)).registerTelephonyCallback(any(), any());
        verify(mTelephonyManager, times(2)).registerTelephonyCallback(any(), any());
        assertThat(mInternetDialogController.mSubIdTelephonyCallbackMap.size() == 2);
        assertThat(mInternetDialogController.mSubIdTelephonyCallbackMap.size()).isEqualTo(2);


        // Adds non DDS subId again
        // Adds non DDS subId again
        doReturn(SUB_ID2).when(info).getSubscriptionId();
        doReturn(SUB_ID2).when(info).getSubscriptionId();
@@ -912,7 +912,7 @@ public class InternetDialogDelegateControllerTest extends SysuiTestCase {


        // Does not add due to cached subInfo in mSubIdTelephonyCallbackMap.
        // Does not add due to cached subInfo in mSubIdTelephonyCallbackMap.
        verify(mTelephonyManager, times(2)).registerTelephonyCallback(any(), any());
        verify(mTelephonyManager, times(2)).registerTelephonyCallback(any(), any());
        assertThat(mInternetDialogController.mSubIdTelephonyCallbackMap.size() == 2);
        assertThat(mInternetDialogController.mSubIdTelephonyCallbackMap.size()).isEqualTo(2);
    }
    }


    @Test
    @Test