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

Commit 1b394523 authored by Paul Colta's avatar Paul Colta Committed by Paul Colța
Browse files

HDMI: Improve DSM atom logging test

Bug: 287200423
Test: atest HdmiCecAtomLoggingTest
Change-Id: I917ff07ff17d72c5f7439fa884f6f2e6c7af73cf
parent 0a145a08
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -335,6 +335,9 @@ public class HdmiCecAtomLoggingTest {

    @Test
    public void testDsmStatusChanged_onWakeUp_ArcSupported_writesAtom_logReasonWake() {
        mHdmiControlServiceSpy.setSoundbarMode(HdmiControlManager.SOUNDBAR_MODE_DISABLED);
        Mockito.clearInvocations(mHdmiCecAtomWriterSpy);

        doReturn(true).when(mHdmiControlServiceSpy).isArcSupported();
        mHdmiControlServiceSpy.onWakeUp(WAKE_UP_SCREEN_ON);
        mTestLooper.dispatchAll();
@@ -349,6 +352,9 @@ public class HdmiCecAtomLoggingTest {

    @Test
    public void testDsmStatusChanged_onWakeUp_ArcNotSupported_writesAtom_logReasonWake() {
        mHdmiControlServiceSpy.setSoundbarMode(HdmiControlManager.SOUNDBAR_MODE_DISABLED);
        Mockito.clearInvocations(mHdmiCecAtomWriterSpy);

        doReturn(false).when(mHdmiControlServiceSpy).isArcSupported();
        mHdmiControlServiceSpy.onWakeUp(WAKE_UP_SCREEN_ON);
        mTestLooper.dispatchAll();