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

Commit 4980d238 authored by Tyler Gunn's avatar Tyler Gunn Committed by android-build-merger
Browse files

Merge "Fix mocked InCallService in unit tests."

am: 3c285556

Change-Id: I99b918b9a10add85dc7e7abda1949f32cddb91eb
parents ca54a484 3c285556
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -76,7 +76,11 @@ public class InCallServiceFixture implements TestFixture<IInCallService> {
        @Override
        public void updateCall(ParcelableCall call) throws RemoteException {
            if (!mCallById.containsKey(call.getId())) {
                throw new RuntimeException("Call " + call.getId() + " not added yet");
                // This used to throw an exception, however the actual InCallService implementation
                // ignores updates for calls which don't yet exist.  This is not a problem as when
                // a call is added to an InCallService its entire state is parceled and sent to the
                // InCallService.
                return;
            }
            mLatestCallId = call.getId();
            mCallById.put(call.getId(), call);