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

Commit f99963c5 authored by Hall Liu's avatar Hall Liu
Browse files

Apply test fix that got left out

A previous cherry-pick omitted a line of a test fix. Reapplying this in
AOSP (the line that's been changed is the same in master)

Test: run unit tests
Change-Id: I46d11b5d0ce31c80cf3cba059f86121e5c5ac59b
parent 8c9d96f2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ import static org.junit.Assert.assertEquals;
import static org.mockito.Matchers.anyInt;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.reset;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;

@@ -117,7 +118,7 @@ public class CallAudioModeStateMachineTest extends TelecomTestCase {
        sm.sendMessage(CallAudioModeStateMachine.RINGER_MODE_CHANGE);
        waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT);

        verify(mCallAudioManager).startRinging();
        verify(mCallAudioManager, times(2)).startRinging();
        verify(mAudioManager).requestAudioFocusForCall(AudioManager.STREAM_RING,
                AudioManager.AUDIOFOCUS_GAIN_TRANSIENT);
        verify(mAudioManager).setMode(AudioManager.MODE_RINGTONE);