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

Commit beb98f40 authored by virkumar's avatar virkumar
Browse files

(ImsService API changes for Better IMS Threading) Fix Unit Test cases for opt/telephony

Fix Unit Test cases for opt/telephony by calling the new API which was added in ImsService.

Test: atest CtsTelephonyTestCases:ImsCallingTest
Bug: 171037053
Merged-In: Ic919f54d26cf864782531417081b41ea26e034d7
Change-Id: Ic919f54d26cf864782531417081b41ea26e034d7
parent 1f52cc02
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -48,6 +48,10 @@ public class ImsConfigImplTest {
        // for testing caching
        private boolean mIsGetConfigCalled = false;

        ImsConfigImpl() {
            super(Runnable::run);
        }

        @Override
        public int setConfig(int item, int value) {
            latestIntConfig = new Pair<>(item, value);
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ public class ImsRegistrationTests {
    @Before
    public void setup() throws RemoteException {
        MockitoAnnotations.initMocks(this);
        mRegistration = new ImsRegistrationImplBase();
        mRegistration = new ImsRegistrationImplBase(Runnable::run);
        mRegBinder = mRegistration.getBinder();
        mRegBinder.addRegistrationCallback(mCallback);
    }
+4 −0
Original line number Diff line number Diff line
@@ -40,6 +40,10 @@ public class TestMmTelFeature extends MmTelFeature {
    public CountDownLatch configuredRtpHeaderExtensions = new CountDownLatch(1);
    Set<RtpHeaderExtensionType> receivedExtensions = null;

    public TestMmTelFeature() {
        super(Runnable::run);
    }

    private final TestImsCallSession mCallSession = new TestImsCallSession();
    private class TestImsCallSession extends ImsCallSessionImplBase {