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

Commit 30b8ce7c authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add unit test for handling of null call profile after a non-null...

Merge "Add unit test for handling of null call profile after a non-null profile." am: d43800b4 am: 7c3fe23a

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/1515390

Change-Id: Ibe29630a325416e872c006ca989bb51809735fa4
parents a8d64d9c 7c3fe23a
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -121,6 +121,20 @@ public class ImsCallTest extends TelephonyTest {
        assertTrue(imsCall.wasVideoCall());
    }

    @Test
    @SmallTest
    public void testNullCallProfileAfterNonNull() {
        ImsCallProfile profile = new ImsCallProfile();
        profile.mCallType = ImsCallProfile.CALL_TYPE_VT_TX;

        ImsCall imsCall = new ImsCall(mContext, profile);
        assertNotNull(imsCall);
        assertTrue(imsCall.wasVideoCall());

        imsCall.setCallProfile(null);
        assertTrue(imsCall.wasVideoCall());
    }

    @Test
    @SmallTest
    public void testSetWifi() {