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

Commit fda28316 authored by Brad Ebinger's avatar Brad Ebinger
Browse files

Fix ImsPhoneCallTrackerTest

With the addition of a ImsService status state, the
test needs to return ImsFeature.STATE_READY, or the
ImsPhoneCallTracker will not use that ImsService.

Test: Unit Tests pass
Change-Id: Ie134d7383d29aee34d9c4ac8e7ef4f2b77e87943
parent 4a9210e9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ import android.os.Bundle;
import android.os.HandlerThread;
import android.os.Message;
import android.telephony.PhoneNumberUtils;
import android.telephony.ims.feature.ImsFeature;
import android.test.suitebuilder.annotation.SmallTest;

import com.android.ims.ImsCall;
@@ -150,7 +151,7 @@ public class ImsPhoneCallTrackerTest extends TelephonyTest {
        mSecondImsCall = spy(new ImsCall(mContext, mImsCallProfile));
        imsCallMocking(mImsCall);
        imsCallMocking(mSecondImsCall);

        doReturn(ImsFeature.STATE_READY).when(mImsManager).getImsServiceStatus();
        doReturn(mImsCallProfile).when(mImsManager).createCallProfile(eq(mServiceId),
                anyInt(), anyInt());