/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/analytics/ |
D | DefaultPlaybackSessionManagerTest.java | 51 @Mock private PlaybackSessionManager.Listener mockListener; field in DefaultPlaybackSessionManagerTest 57 sessionManager.setListener(mockListener); in setUp() 67 verify(mockListener).onSessionCreated(eq(eventTime), anyString()); in updateSessions_withoutMediaPeriodId_createsNewSession() 68 verify(mockListener).onSessionActive(eq(eventTime), anyString()); in updateSessions_withoutMediaPeriodId_createsNewSession() 69 verifyNoMoreInteractions(mockListener); in updateSessions_withoutMediaPeriodId_createsNewSession() 83 verify(mockListener).onSessionCreated(eq(eventTime), sessionId.capture()); in updateSessions_withMediaPeriodId_createsNewSession() 84 verify(mockListener).onSessionActive(eventTime, sessionId.getValue()); in updateSessions_withMediaPeriodId_createsNewSession() 85 verifyNoMoreInteractions(mockListener); in updateSessions_withMediaPeriodId_createsNewSession() 105 verify(mockListener).onSessionCreated(eq(eventTime1), sessionId.capture()); in updateSessions_ofSameWindow_withMediaPeriodId_afterWithoutMediaPeriodId_doesNotCreateNewSession() 106 verify(mockListener).onSessionActive(eventTime1, sessionId.getValue()); in updateSessions_ofSameWindow_withMediaPeriodId_afterWithoutMediaPeriodId_doesNotCreateNewSession() [all …]
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | Http2ClientStreamTransportStateTest.java | 54 @Mock private ClientStreamListener mockListener; field in Http2ClientStreamTransportStateTest 70 }).when(mockListener).messagesAvailable(Matchers.<StreamListener.MessageProducer>any()); in setUp() 76 state.setListener(mockListener); in transportHeadersReceived_notifiesListener() 83 verify(mockListener, never()).closed(any(Status.class), same(PROCESSED), any(Metadata.class)); in transportHeadersReceived_notifiesListener() 84 verify(mockListener).headersRead(headers); in transportHeadersReceived_notifiesListener() 90 state.setListener(mockListener); in transportHeadersReceived_doesntRequire200() 97 verify(mockListener, never()).closed(any(Status.class), same(PROCESSED), any(Metadata.class)); in transportHeadersReceived_doesntRequire200() 98 verify(mockListener).headersRead(headers); in transportHeadersReceived_doesntRequire200() 104 state.setListener(mockListener); in transportHeadersReceived_noHttpStatus() 111 verify(mockListener, never()).headersRead(any(Metadata.class)); in transportHeadersReceived_noHttpStatus() [all …]
|
D | AbstractClientStreamTest.java | 75 @Mock private ClientStreamListener mockListener; field in AbstractClientStreamTest 89 }).when(mockListener).messagesAvailable(Matchers.<StreamListener.MessageProducer>any()); in setUp() 140 stream.start(mockListener); in cancel_notifiesOnlyOnce() 145 verify(mockListener).closed(any(Status.class), same(PROCESSED), any(Metadata.class)); in cancel_notifiesOnlyOnce() 162 stream.start(mockListener); in cantCallStartTwice() 165 stream.start(mockListener); in cantCallStartTwice() 185 stream.start(mockListener); in inboundHeadersReceived_notifiesListener() 189 verify(mockListener).headersRead(headers); in inboundHeadersReceived_notifiesListener() 196 stream.start(mockListener); in inboundHeadersReceived_failsIfStatusReported() 209 stream.start(mockListener); in inboundHeadersReceived_acceptsGzipContentEncoding() [all …]
|
D | ServerImplTest.java | 1106 ServerStreamListener mockListener = mock(ServerStreamListener.class); in messageRead_errorCancelsCall() local 1107 listener.setListener(mockListener); in messageRead_errorCancelsCall() 1110 doThrow(expectedT).when(mockListener) in messageRead_errorCancelsCall() 1131 ServerStreamListener mockListener = mock(ServerStreamListener.class); in messageRead_runtimeExceptionCancelsCall() local 1132 listener.setListener(mockListener); in messageRead_runtimeExceptionCancelsCall() 1135 doThrow(expectedT).when(mockListener) in messageRead_runtimeExceptionCancelsCall() 1156 ServerStreamListener mockListener = mock(ServerStreamListener.class); in halfClosed_errorCancelsCall() local 1157 listener.setListener(mockListener); in halfClosed_errorCancelsCall() 1160 doThrow(expectedT).when(mockListener).halfClosed(); in halfClosed_errorCancelsCall() 1179 ServerStreamListener mockListener = mock(ServerStreamListener.class); in halfClosed_runtimeExceptionCancelsCall() local [all …]
|
D | DnsNameResolverTest.java | 105 private NameResolver.Listener mockListener; field in DnsNameResolverTest 191 resolver.start(mockListener); in resolve() 193 verify(mockListener).onAddresses(resultCaptor.capture(), any(Attributes.class)); in resolve() 199 verify(mockListener, times(2)).onAddresses(resultCaptor.capture(), any(Attributes.class)); in resolve() 355 resolver.start(mockListener); in doNotResolveWhenProxyDetected() 358 verify(mockListener).onAddresses(resultCaptor.capture(), any(Attributes.class)); in doNotResolveWhenProxyDetected()
|
D | ManagedChannelImplTest.java | 1809 ClientCall.Listener<Integer> mockListener = in verifyPanicMode() local 1813 call.start(mockListener, new Metadata()); in verifyPanicMode() 1815 verifyCallListenerClosed(mockListener, Status.Code.INTERNAL, cause); in verifyPanicMode()
|
/external/deqp/android/cts/runner/tests/src/com/drawelements/deqp/runner/ |
D | DeqpTestRunnerTest.java | 215 ITestInvocationListener mockListener in testGlesVersion() local 255 mockListener.testRunStarted(getTestId(deqpTest), 1); in testGlesVersion() 258 mockListener.testStarted(EasyMock.eq(testId)); in testGlesVersion() 261 mockListener.testEnded(EasyMock.eq(testId), EasyMock.<HashMap<String, Metric>>notNull()); in testGlesVersion() 264 mockListener.testRunEnded(EasyMock.anyLong(), EasyMock.<HashMap<String, Metric>>notNull()); in testGlesVersion() 268 EasyMock.replay(mockListener); in testGlesVersion() 271 deqpTest.run(mockListener); in testGlesVersion() 273 EasyMock.verify(mockListener); in testGlesVersion() 356 ITestInvocationListener mockListener in testResultCode() local 381 mockListener.testRunStarted(getTestId(deqpTest), 1); in testResultCode() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowTextToSpeechTest.java | 27 private UtteranceProgressListener mockListener; field in ShadowTextToSpeechTest 37 mockListener = mock(UtteranceProgressListener.class); in setUp() 113 textToSpeech.setOnUtteranceProgressListener(mockListener); in threeArgumentSpeak_withUtteranceId_shouldGetCallbackUtteranceId() 120 verify(mockListener).onStart("ThreeArgument"); in threeArgumentSpeak_withUtteranceId_shouldGetCallbackUtteranceId() 121 verify(mockListener).onDone("ThreeArgument"); in threeArgumentSpeak_withUtteranceId_shouldGetCallbackUtteranceId() 126 textToSpeech.setOnUtteranceProgressListener(mockListener); in threeArgumentSpeak_withoutUtteranceId_shouldDoesNotGetCallback() 131 verify(mockListener, never()).onStart(null); in threeArgumentSpeak_withoutUtteranceId_shouldDoesNotGetCallback() 132 verify(mockListener, never()).onDone(null); in threeArgumentSpeak_withoutUtteranceId_shouldDoesNotGetCallback() 145 textToSpeech.setOnUtteranceProgressListener(mockListener); in onUtteranceProgressListener_shouldGetCallbackUtteranceId() 150 verify(mockListener).onStart("TTSEnable"); in onUtteranceProgressListener_shouldGetCallbackUtteranceId() [all …]
|
D | ShadowSharedPreferencesTest.java | 173 …SharedPreferences.OnSharedPreferenceChangeListener mockListener = mock(SharedPreferences.OnSharedP… in shouldRemoveRegisteredListenersOnUnresgister() local 174 anotherSharedPreferences.registerOnSharedPreferenceChangeListener(mockListener); in shouldRemoveRegisteredListenersOnUnresgister() 176 anotherSharedPreferences.unregisterOnSharedPreferenceChangeListener(mockListener); in shouldRemoveRegisteredListenersOnUnresgister() 179 verifyZeroInteractions(mockListener); in shouldRemoveRegisteredListenersOnUnresgister()
|
D | ShadowWifiP2pManagerTest.java | 24 @Mock private WifiP2pManager.ChannelListener mockListener; field in ShadowWifiP2pManagerTest 33 channel = manager.initialize(context, context.getMainLooper(), mockListener); in setUp()
|
/external/exoplayer/tree/extensions/cast/src/test/java/com/google/android/exoplayer2/ext/cast/ |
D | CastPlayerTest.java | 72 @Mock private Player.EventListener mockListener; field in CastPlayerTest 97 castPlayer.addListener(mockListener); in setUp() 111 verify(mockListener).onPlayerStateChanged(true, Player.STATE_IDLE); in setPlayWhenReady_masksRemoteState() 112 verify(mockListener) in setPlayWhenReady_masksRemoteState() 117 verifyNoMoreInteractions(mockListener); in setPlayWhenReady_masksRemoteState() 124 verifyNoMoreInteractions(mockListener); in setPlayWhenReady_masksRemoteState() 136 verify(mockListener).onPlayerStateChanged(true, Player.STATE_IDLE); in setPlayWhenReadyMasking_updatesUponResultChange() 137 verify(mockListener) in setPlayWhenReadyMasking_updatesUponResultChange() 144 verify(mockListener).onPlayerStateChanged(false, Player.STATE_IDLE); in setPlayWhenReadyMasking_updatesUponResultChange() 145 verify(mockListener).onPlayWhenReadyChanged(false, Player.PLAY_WHEN_READY_CHANGE_REASON_REMOTE); in setPlayWhenReadyMasking_updatesUponResultChange() [all …]
|
/external/grpc-grpc-java/services/src/test/java/io/grpc/services/ |
D | BinlogHelperTest.java | 920 final ServerCall.Listener mockListener = mock(ServerCall.Listener.class); in serverDeadlineLogged() local 953 return mockListener; in serverDeadlineLogged() 983 ClientCall.Listener<byte[]> mockListener = mock(ClientCall.Listener.class); in clientDeadlineLogged_deadlineSetViaCallOption() local 1004 call.start(mockListener, new Metadata()); in clientDeadlineLogged_deadlineSetViaCallOption() 1059 ClientCall.Listener<byte[]> mockListener = mock(ClientCall.Listener.class); in clientDeadlineLogged_deadlineSetViaContext() local 1060 callFuture.get().start(mockListener, new Metadata()); in clientDeadlineLogged_deadlineSetViaContext() 1126 ClientCall.Listener<byte[]> mockListener = mock(ClientCall.Listener.class); in clientInterceptor() local 1146 interceptedCall.start(mockListener, clientInitial); in clientInterceptor() 1171 verify(mockListener).onHeaders(same(serverInitial)); in clientInterceptor() 1212 verify(mockListener).onMessage(same(response)); in clientInterceptor() [all …]
|