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

Commit 5a20377f authored by Hyunho Shin's avatar Hyunho Shin Committed by Android (Google) Code Review
Browse files

Merge "Create a SipDetails file and set it as a variable in ImsRegistrationAttributes"

parents d0cc0487 7988f178
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -165,6 +165,21 @@ public class ImsRegistrationTests {
                eq(SUGGESTED_ACTION_TRIGGER_PLMN_BLOCK), eq(REGISTRATION_TECH_LTE));
    }

    @SmallTest
    @Test
    public void testRegistrationCallbackOnDeregisteredWithRegistrationAttributes()
            throws RemoteException {
        ImsReasonInfo info = new ImsReasonInfo();
        SipDetails details = new SipDetails.Builder(SipDetails.METHOD_REGISTER)
                .setCSeq(1).setSipResponseCode(200, "OK")
                .setSipResponseReasonHeader(10, "reasonText")
                .setCallId("testCallId").build();

        mRegistration.onDeregistered(info, details);

        verify(mCallback).onDeregisteredWithDetails(eq(info), anyInt(), anyInt(), eq(details));
    }

    @SmallTest
    @Test
    public void testRegistrationCallbackOnTechChangeFailed() throws RemoteException {