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

Commit 839d59ac authored by Brad Ebinger's avatar Brad Ebinger Committed by Gerrit Code Review
Browse files

Merge "Modify Telephony Tests to handle ImsException"

parents 81338ca4 3ead7461
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);