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

Commit 4312a458 authored by Brad Ebinger's avatar Brad Ebinger Committed by android-build-merger
Browse files

Merge "Modify Telephony Tests to handle ImsException"

am: 839d59ac

Change-Id: Ie01b0b1287bc955361a0553ec71980f45365553f
parents 5c273a6d 839d59ac
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@ import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.verify;

import android.os.IBinder;
import android.os.RemoteException;
import android.telephony.AccessNetworkConstants;
import android.telephony.ims.aidl.IImsRegistrationCallback;
import android.telephony.ims.stub.ImsRegistrationImplBase;
@@ -72,10 +71,11 @@ public class ImsMmTelManagerTests extends TelephonyTest {
     */
    @SmallTest
    @Test
    public void testCallbackValues() throws RemoteException {
    public void testCallbackValues() throws Exception {
        LocalCallback cb = new LocalCallback();
        ImsMmTelManager managerUT = new ImsMmTelManager(0);
        managerUT.registerImsRegistrationCallback(Runnable::run, cb);

        // Capture the RegistrationCallback that was registered.
        ArgumentCaptor<IImsRegistrationCallback> callbackCaptor =
                ArgumentCaptor.forClass(IImsRegistrationCallback.class);