Home
last modified time | relevance | path

Searched refs:listener2 (Results 1 – 22 of 22) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/debugging/
DInvocationListenerCallbackTest.java53 RememberingListener listener2 = new RememberingListener(container); in should_call_listeners_in_order() local
55 Foo foo = mock(Foo.class, withSettings().invocationListeners(listener1, listener2)); in should_call_listeners_in_order()
61 assertThat(container).containsExactly(listener1, listener2); in should_call_listeners_in_order()
84 RememberingListener listener2 = new RememberingListener(); in should_call_all_listener_when_mock_return_normally() local
85 Foo foo = mock(Foo.class, withSettings().invocationListeners(listener1, listener2)); in should_call_all_listener_when_mock_return_normally()
93 assertThat(listener2).is(notifiedFor("rosemary", getClass().getSimpleName())); in should_call_all_listener_when_mock_return_normally()
100 InvocationListener listener2 = mock(InvocationListener.class, "listener2"); in should_call_all_listener_when_mock_throws_exception() local
101 Foo foo = mock(Foo.class, withSettings().invocationListeners(listener1, listener2)); in should_call_all_listener_when_mock_throws_exception()
110 InOrder orderedVerify = inOrder(listener1, listener2); in should_call_all_listener_when_mock_throws_exception()
112 orderedVerify.verify(listener2).reportInvocation(any(MethodInvocationReport.class)); in should_call_all_listener_when_mock_throws_exception()
DVerificationListenerCallBackTest.java56 RememberingListener2 listener2 = new RememberingListener2(); in should_call_all_listeners_on_verify() local
57 Mockito.framework().addListener(listener1).addListener(listener2); in should_call_all_listeners_on_verify()
68 assertThat(listener2).is(notifiedFor(foo, never, invocationWanted)); in should_call_all_listeners_on_verify()
/external/libevent/test/
Dregress_listener.c75 struct evconnlistener *listener1 = NULL, *listener2 = NULL; in regress_pick_a_port() local
99 listener2 = evconnlistener_new_bind(base, acceptcb, &count2, in regress_pick_a_port()
101 tt_assert(listener2); in regress_pick_a_port()
104 tt_assert(evconnlistener_get_fd(listener2) != EVUTIL_INVALID_SOCKET); in regress_pick_a_port()
107 tt_assert(getsockname(evconnlistener_get_fd(listener2), in regress_pick_a_port()
119 tt_ptr_op(evconnlistener_get_base(listener2), ==, base); in regress_pick_a_port()
143 if (listener2) in regress_pick_a_port()
144 evconnlistener_free(listener2); in regress_pick_a_port()
/external/mockito/src/test/java/org/mockito/internal/handler/
DInvocationNotifierHandlerTest.java43 @Mock private InvocationListener listener2; field in InvocationNotifierHandlerTest
55 … MockSettingsImpl<ArrayList<Answer<?>>>().invocationListeners(customListener, listener1, listener2) in setUp()
69 …verify(listener2).reportInvocation(new NotifiedMethodInvocationReport(invocation, "returned value"… in should_notify_all_listeners_when_calling_delegate_handler()
83 …verify(listener2).reportInvocation(new NotifiedMethodInvocationReport(invocation, (Object) compute… in should_notify_all_listeners_when_called_delegate_handler_returns_ex()
99 …verify(listener2).reportInvocation(new NotifiedMethodInvocationReport(invocation, parseException)); in should_notify_all_listeners_when_called_delegate_handler_throws_exception_and_rethrow_it()
/external/mockito/src/test/java/org/mockito/internal/listeners/
DStubbingLookupNotifierTest.java47 StubbingLookupListener listener2 = mock(StubbingLookupListener.class); in call_on_stubbing_lookup_method_of_listeners_with_correct_event() local
48 List<StubbingLookupListener> listeners = Lists.newArrayList(listener1, listener2); in call_on_stubbing_lookup_method_of_listeners_with_correct_event()
56 verify(listener2).onStubbingLookup(argThat(new EventArgumentMatcher())); in call_on_stubbing_lookup_method_of_listeners_with_correct_event()
/external/grpc-grpc-java/okhttp/src/test/java/io/grpc/okhttp/
DOkHttpClientTransportTest.java275 MockStreamListener listener2 = new MockStreamListener(); in nextFrameThrowIoException() local
282 stream2.start(listener2); in nextFrameThrowIoException()
289 listener2.waitUntilStreamClosed(); in nextFrameThrowIoException()
294 assertEquals(Status.UNAVAILABLE.getCode(), listener2.status.getCode()); in nextFrameThrowIoException()
295 assertEquals(NETWORK_ISSUE_MESSAGE, listener2.status.getCause().getMessage()); in nextFrameThrowIoException()
584 MockStreamListener listener2 = new MockStreamListener(); in windowUpdate() local
592 stream2.start(listener2); in windowUpdate()
641 listener2.waitUntilStreamClosed(); in windowUpdate()
643 listener2.status.getCode()); in windowUpdate()
801 MockStreamListener listener2 = new MockStreamListener(); in stopNormally() local
[all …]
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DListenerCallQueueTest.java75 Object listener2 = new Object(); in testEnqueueAndDispatch_multipleListeners() local
76 queue.addListener(listener2, directExecutor()); in testEnqueueAndDispatch_multipleListeners()
77 queue.enqueue(incrementingEvent(counters, multiset(listener1, 3, listener2, 1))); in testEnqueueAndDispatch_multipleListeners()
78 queue.enqueue(incrementingEvent(counters, multiset(listener1, 4, listener2, 2))); in testEnqueueAndDispatch_multipleListeners()
81 assertEquals(multiset(listener1, 4, listener2, 2), counters); in testEnqueueAndDispatch_multipleListeners()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DListenerCallQueueTest.java75 Object listener2 = new Object(); in testEnqueueAndDispatch_multipleListeners() local
76 queue.addListener(listener2, directExecutor()); in testEnqueueAndDispatch_multipleListeners()
77 queue.enqueue(incrementingEvent(counters, multiset(listener1, 3, listener2, 1))); in testEnqueueAndDispatch_multipleListeners()
78 queue.enqueue(incrementingEvent(counters, multiset(listener1, 4, listener2, 2))); in testEnqueueAndDispatch_multipleListeners()
81 assertEquals(multiset(listener1, 4, listener2, 2), counters); in testEnqueueAndDispatch_multipleListeners()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowConnectivityManagerTest.java421 ConnectivityManager.OnNetworkActiveListener listener2 = in addDefaultNetworkActiveListener_shouldAddListener() local
424 connectivityManager.addDefaultNetworkActiveListener(listener2); in addDefaultNetworkActiveListener_shouldAddListener()
429 verify(listener2).onNetworkActive(); in addDefaultNetworkActiveListener_shouldAddListener()
438 ConnectivityManager.OnNetworkActiveListener listener2 = in removeDefaultNetworkActiveListener_shouldRemoveListeners() local
441 connectivityManager.addDefaultNetworkActiveListener(listener2); in removeDefaultNetworkActiveListener_shouldRemoveListeners()
446 verify(listener2).onNetworkActive(); in removeDefaultNetworkActiveListener_shouldRemoveListeners()
448 connectivityManager.removeDefaultNetworkActiveListener(listener2); in removeDefaultNetworkActiveListener_shouldRemoveListeners()
453 verify(listener2).onNetworkActive(); in removeDefaultNetworkActiveListener_shouldRemoveListeners()
460 verify(listener2).onNetworkActive(); in removeDefaultNetworkActiveListener_shouldRemoveListeners()
DShadowSubscriptionManagerTest.java75 DummySubscriptionsChangedListener listener2 = new DummySubscriptionsChangedListener(); in removeOnSubscriptionsChangedListener_shouldRemoveListener() local
77 shadowSubscriptionManager.addOnSubscriptionsChangedListener(listener2); in removeOnSubscriptionsChangedListener_shouldRemoveListener()
84 assertThat(listener2.subscriptionChanged).isTrue(); in removeOnSubscriptionsChangedListener_shouldRemoveListener()
DShadowSensorManagerTest.java109 TestSensorEventListener listener2 = new TestSensorEventListener(); in shouldSendSensorEventToMultipleRegisteredListeners() local
112 sensorManager.registerListener(listener2, sensor, SensorManager.SENSOR_DELAY_NORMAL); in shouldSendSensorEventToMultipleRegisteredListeners()
118 assertThat(listener2.getLatestSensorEvent().get()).isEqualTo(event); in shouldSendSensorEventToMultipleRegisteredListeners()
DShadowLocationManagerTest.java155 TestLocationListener listener2 = new TestLocationListener(); in shouldKeepTrackOfWhichProvidersAListenerIsBoundTo_withoutDuplicates_inAnyOrder() local
164 locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 1, 1, listener2); in shouldKeepTrackOfWhichProvidersAListenerIsBoundTo_withoutDuplicates_inAnyOrder()
165 locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 1, 1, listener2); in shouldKeepTrackOfWhichProvidersAListenerIsBoundTo_withoutDuplicates_inAnyOrder()
171 …tedProvidersForListener2, new HashSet<>(shadowLocationManager.getProvidersForListener(listener2))); in shouldKeepTrackOfWhichProvidersAListenerIsBoundTo_withoutDuplicates_inAnyOrder()
DShadowAlarmManagerTest.java320 OnAlarmListener listener2 = () -> {}; in cancel_removesMatchingListeners() local
324 alarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, 30, "tag", listener2, handler); in cancel_removesMatchingListeners()
330 assertThat(shadowAlarmManager.peekNextScheduledAlarm().onAlarmListener).isEqualTo(listener2); in cancel_removesMatchingListeners()
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
DLogManagerTest.java566 MockPropertyChangeListener listener2 = new MockPropertyChangeListener(); in testAddRemovePropertyChangeListener() local
570 mockManager.addPropertyChangeListener(listener2); in testAddRemovePropertyChangeListener()
573 assertNull(listener2.getEvent()); in testAddRemovePropertyChangeListener()
577 assertNotNull(listener2.getEvent()); in testAddRemovePropertyChangeListener()
581 listener2.reset(); in testAddRemovePropertyChangeListener()
588 assertNotNull(listener2.getEvent()); in testAddRemovePropertyChangeListener()
590 listener2.reset(); in testAddRemovePropertyChangeListener()
597 assertNotNull(listener2.getEvent()); in testAddRemovePropertyChangeListener()
598 listener2.reset(); in testAddRemovePropertyChangeListener()
602 assertNull(listener2.getEvent()); in testAddRemovePropertyChangeListener()
[all …]
/external/webrtc/sdk/android/instrumentationtests/src/org/webrtc/
DSurfaceTextureHelperTest.java417 final MockTextureListener listener2 = new MockTextureListener(); in testRestartListeningWithNewListener() local
418 surfaceTextureHelper.startListening(listener2); in testRestartListeningWithNewListener()
420 listener2.assertNoFrameIsDelivered(/* waitPeriodMs= */ 1); in testRestartListeningWithNewListener()
427 listener2.waitForTextureBuffer().release(); in testRestartListeningWithNewListener()
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DServerInterceptorsTest.java274 final ServerCall.Listener<String> listener2 = mock(ServerCall.Listener.class); in argumentsPassed() local
286 return (ServerCall.Listener<R1>) listener2; in argumentsPassed()
291 assertSame(listener2, in argumentsPassed()
/external/fastrpc/src/
Dlistener_android.c254 static void* listener2(void* arg) { in listener2() function
389 return pthread_create(&me->thread, 0, listener2, (void*)me); in listener_start_thread2()
/external/llvm-project/llvm/utils/unittest/googlemock/include/gmock/
Dgmock-matchers.h1524 StringMatchResultListener listener2;
1525 if (!matcher2_.MatchAndExplain(x, &listener2)) {
1526 *listener << listener2.str();
1532 const internal::string s2 = listener2.str();
1696 StringMatchResultListener listener2;
1697 if (matcher2_.MatchAndExplain(x, &listener2)) {
1698 *listener << listener2.str();
1704 const internal::string s2 = listener2.str();
/external/tensorflow/tensorflow/python/training/
Dbasic_session_run_hooks_test.py548 listener2 = MockCheckpointSaverListener()
552 listeners=[listener1, listener2])
560 listener2_counts = listener2.get_counts()
/external/googletest/googlemock/test/
Dgmock-matchers_test.cc328 StringMatchResultListener listener2; in TEST() local
329 EXPECT_FALSE(m.MatchAndExplain(-9, &listener2)); in TEST()
330 EXPECT_EQ("which is 9 less than 0", listener2.str()); in TEST()
3046 StringMatchResultListener listener2; in TEST() local
3047 EXPECT_FALSE(ExplainMatchResult(Ge(42), 1.5, &listener2)); in TEST()
3048 EXPECT_EQ("", listener2.str()); in TEST()
3058 StringMatchResultListener listener2; in TEST() local
3059 EXPECT_FALSE(ExplainMatchResult(is_zero, 1.5, &listener2)); in TEST()
3060 EXPECT_EQ("", listener2.str()); in TEST()
/external/fmtlib/test/gmock/
Dgmock.h6104 StringMatchResultListener listener2;
6105 if (!matcher2_.MatchAndExplain(x, &listener2)) {
6106 *listener << listener2.str();
6112 const internal::string s2 = listener2.str();
6276 StringMatchResultListener listener2;
6277 if (matcher2_.MatchAndExplain(x, &listener2)) {
6278 *listener << listener2.str();
6284 const internal::string s2 = listener2.str();
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/test/gmock-1.8.0/gmock/
Dgmock.h6341 StringMatchResultListener listener2;
6342 if (!matcher2_.MatchAndExplain(x, &listener2)) {
6343 *listener << listener2.str();
6349 const internal::string s2 = listener2.str();
6513 StringMatchResultListener listener2;
6514 if (matcher2_.MatchAndExplain(x, &listener2)) {
6515 *listener << listener2.str();
6521 const internal::string s2 = listener2.str();