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

Commit 7efe1ad5 authored by Virkumar Karavate's avatar Virkumar Karavate Committed by Automerger Merge Worker
Browse files

Merge "(ImsService API changes for Better IMS Threading) Fix Unit Test cases...

Merge "(ImsService API changes for Better IMS Threading) Fix Unit Test cases for opt/telephony" am: a9919c66

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

Change-Id: Iba847a724c9176666dbb2854290b3c114fff857e
parents 77cb2314 a9919c66
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 {