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

Commit a4d21d5b authored by William Escande's avatar William Escande
Browse files

AvrcpControllerStateMachine: add label in test

Test: atest testRegisterAbsVolumeNotification
Bug: 311772251
Change-Id: I2f8428e182df7567b36bd8ada956275335538be1
parent 9ce6ff60
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1110,11 +1110,12 @@ public class AvrcpControllerStateMachineTest {
     */
    @Test
    public void testRegisterAbsVolumeNotification() {
        byte label = 42;
        setUpConnectedState(true, true);
        mAvrcpStateMachine.sendMessage(
                AvrcpControllerStateMachine.MESSAGE_PROCESS_REGISTER_ABS_VOL_NOTIFICATION);
        verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1))
                .sendRegisterAbsVolRsp(any(), anyByte(), eq(127), anyInt());
                AvrcpControllerStateMachine.MESSAGE_PROCESS_REGISTER_ABS_VOL_NOTIFICATION, label);
        verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS))
                .sendRegisterAbsVolRsp(any(), anyByte(), eq(127), eq((int) label));
    }

    /**