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

Commit 86c0f582 authored by Robin Lee's avatar Robin Lee
Browse files

Update test: call official binderDied method

Tracks change to the implementation to use the modern
parameter version instead of the Runnable default.

Test: atest ProtoLogConfigurationServiceTest
Bug: mMockClientBinder
Flag: EXEMPT bugfix test
Change-Id: Iea8b7a9d2621e9a9e557d12fa8c194962608c7cf
parent 896bf415
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -219,9 +219,9 @@ public class ProtoLogConfigurationServiceTest {
        Mockito.verify(mSecondMockClientBinder)
                .linkToDeath(mSecondDeathRecipientArgumentCaptor.capture(), anyInt());

        mDeathRecipientArgumentCaptor.getValue().binderDied();
        mDeathRecipientArgumentCaptor.getValue().binderDied(mMockClientBinder);
        Mockito.verify(tracer, never()).trace(any(), any());
        mSecondDeathRecipientArgumentCaptor.getValue().binderDied();
        mSecondDeathRecipientArgumentCaptor.getValue().binderDied(mSecondMockClientBinder);
        Mockito.verify(tracer).trace(any(), eq(mViewerConfigFile.getAbsolutePath()));
    }