Home
last modified time | relevance | path

Searched refs:listener2 (Results 1 – 18 of 18) 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
98 listener2 = evconnlistener_new_bind(base, acceptcb, &count2, in regress_pick_a_port()
100 tt_assert(listener2); in regress_pick_a_port()
103 tt_int_op(evconnlistener_get_fd(listener2), >=, 0); in regress_pick_a_port()
106 tt_assert(getsockname(evconnlistener_get_fd(listener2), in regress_pick_a_port()
118 tt_ptr_op(evconnlistener_get_base(listener2), ==, base); in regress_pick_a_port()
142 if (listener2) in regress_pick_a_port()
143 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/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/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/google-breakpad/src/testing/include/gmock/
Dgmock-matchers.h1287 StringMatchResultListener listener2; in MatchAndExplain() local
1288 if (!matcher2_.MatchAndExplain(x, &listener2)) { in MatchAndExplain()
1289 *listener << listener2.str(); in MatchAndExplain()
1295 const internal::string s2 = listener2.str(); in MatchAndExplain()
1374 StringMatchResultListener listener2; in MatchAndExplain() local
1375 if (matcher2_.MatchAndExplain(x, &listener2)) { in MatchAndExplain()
1376 *listener << listener2.str(); in MatchAndExplain()
1382 const internal::string s2 = listener2.str(); in MatchAndExplain()
/external/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googlemock/include/gmock/
Dgmock-matchers.h1522 StringMatchResultListener listener2;
1523 if (!matcher2_.MatchAndExplain(x, &listener2)) {
1524 *listener << listener2.str();
1530 const internal::string s2 = listener2.str();
1694 StringMatchResultListener listener2;
1695 if (matcher2_.MatchAndExplain(x, &listener2)) {
1696 *listener << listener2.str();
1702 const internal::string s2 = listener2.str();
/external/google-breakpad/src/testing/test/
Dgmock-matchers_test.cc336 StringMatchResultListener listener2; in TEST() local
337 EXPECT_FALSE(m.MatchAndExplain(-9, &listener2)); in TEST()
338 EXPECT_EQ("which is 9 less than 0", listener2.str()); in TEST()
2393 StringMatchResultListener listener2; in TEST() local
2394 EXPECT_FALSE(ExplainMatchResult(Ge(42), 1.5, &listener2)); in TEST()
2395 EXPECT_EQ("", listener2.str()); in TEST()
2405 StringMatchResultListener listener2; in TEST() local
2406 EXPECT_FALSE(ExplainMatchResult(is_zero, 1.5, &listener2)); in TEST()
2407 EXPECT_EQ("", listener2.str()); in TEST()
/external/tensorflow/tensorflow/python/training/
Dbasic_session_run_hooks_test.py549 listener2 = MockCheckpointSaverListener()
553 listeners=[listener1, listener2])
561 listener2_counts = listener2.get_counts()
/external/googletest/googlemock/test/
Dgmock-matchers_test.cc322 StringMatchResultListener listener2; in TEST() local
323 EXPECT_FALSE(m.MatchAndExplain(-9, &listener2)); in TEST()
324 EXPECT_EQ("which is 9 less than 0", listener2.str()); in TEST()
3016 StringMatchResultListener listener2; in TEST() local
3017 EXPECT_FALSE(ExplainMatchResult(Ge(42), 1.5, &listener2)); in TEST()
3018 EXPECT_EQ("", listener2.str()); in TEST()
3028 StringMatchResultListener listener2; in TEST() local
3029 EXPECT_FALSE(ExplainMatchResult(is_zero, 1.5, &listener2)); in TEST()
3030 EXPECT_EQ("", listener2.str()); in TEST()