Home
last modified time | relevance | path

Searched refs:listener1 (Results 1 – 17 of 17) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/debugging/
DInvocationListenerCallbackTest.java52 RememberingListener listener1 = 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()
68 RememberingListener listener1 = new RememberingListener(container); in should_allow_same_listener() local
70 Foo foo = mock(Foo.class, withSettings().invocationListeners(listener1, listener1)); in should_allow_same_listener()
77 assertThat(container).containsExactly(listener1, listener1, listener1, listener1); in should_allow_same_listener()
83 RememberingListener listener1 = 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()
92 assertThat(listener1).is(notifiedFor("rosemary", getClass().getSimpleName())); in should_call_all_listener_when_mock_return_normally()
99 InvocationListener listener1 = mock(InvocationListener.class, "listener1"); in should_call_all_listener_when_mock_throws_exception() local
[all …]
DVerificationListenerCallBackTest.java55 RememberingListener listener1 = new RememberingListener(); in should_call_all_listeners_on_verify() local
57 Mockito.framework().addListener(listener1).addListener(listener2); in should_call_all_listeners_on_verify()
67 assertThat(listener1).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
95 listener1 = evconnlistener_new_bind(base, acceptcb, &count1, in regress_pick_a_port()
97 tt_assert(listener1); in regress_pick_a_port()
102 tt_int_op(evconnlistener_get_fd(listener1), >=, 0); in regress_pick_a_port()
104 tt_assert(getsockname(evconnlistener_get_fd(listener1), in regress_pick_a_port()
117 tt_ptr_op(evconnlistener_get_base(listener1), ==, base); in regress_pick_a_port()
140 if (listener1) in regress_pick_a_port()
141 evconnlistener_free(listener1); in regress_pick_a_port()
/external/mockito/src/test/java/org/mockito/internal/handler/
DInvocationNotifierHandlerTest.java42 @Mock private InvocationListener listener1; field in InvocationNotifierHandlerTest
55 … MockSettingsImpl<ArrayList<Answer<?>>>().invocationListeners(customListener, listener1, listener2) in setUp()
68 …verify(listener1).reportInvocation(new NotifiedMethodInvocationReport(invocation, "returned value"… in should_notify_all_listeners_when_calling_delegate_handler()
82 …verify(listener1).reportInvocation(new NotifiedMethodInvocationReport(invocation, (Object) compute… in should_notify_all_listeners_when_called_delegate_handler_returns_ex()
98 …verify(listener1).reportInvocation(new NotifiedMethodInvocationReport(invocation, parseException)); in should_notify_all_listeners_when_called_delegate_handler_throws_exception_and_rethrow_it()
/external/grpc-grpc-java/okhttp/src/test/java/io/grpc/okhttp/
DOkHttpClientTransportTest.java274 MockStreamListener listener1 = new MockStreamListener(); in nextFrameThrowIoException() local
278 stream1.start(listener1); in nextFrameThrowIoException()
288 listener1.waitUntilStreamClosed(); in nextFrameThrowIoException()
292 assertEquals(Status.UNAVAILABLE.getCode(), listener1.status.getCode()); in nextFrameThrowIoException()
293 assertEquals(NETWORK_ISSUE_MESSAGE, listener1.status.getCause().getMessage()); in nextFrameThrowIoException()
583 MockStreamListener listener1 = new MockStreamListener(); in windowUpdate() local
587 stream1.start(listener1); in windowUpdate()
635 listener1.waitUntilStreamClosed(); in windowUpdate()
637 listener1.status.getCode()); in windowUpdate()
800 MockStreamListener listener1 = new MockStreamListener(); in stopNormally() local
[all …]
/external/mockito/src/test/java/org/mockito/internal/listeners/
DStubbingLookupNotifierTest.java46 StubbingLookupListener listener1 = 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()
55 verify(listener1).onStubbingLookup(argThat(new EventArgumentMatcher())); in call_on_stubbing_lookup_method_of_listeners_with_correct_event()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowConnectivityManagerTest.java419 ConnectivityManager.OnNetworkActiveListener listener1 = in addDefaultNetworkActiveListener_shouldAddListener() local
423 connectivityManager.addDefaultNetworkActiveListener(listener1); in addDefaultNetworkActiveListener_shouldAddListener()
428 verify(listener1).onNetworkActive(); in addDefaultNetworkActiveListener_shouldAddListener()
436 ConnectivityManager.OnNetworkActiveListener listener1 = in removeDefaultNetworkActiveListener_shouldRemoveListeners() local
440 connectivityManager.addDefaultNetworkActiveListener(listener1); in removeDefaultNetworkActiveListener_shouldRemoveListeners()
445 verify(listener1).onNetworkActive(); in removeDefaultNetworkActiveListener_shouldRemoveListeners()
452 verify(listener1, times(2)).onNetworkActive(); in removeDefaultNetworkActiveListener_shouldRemoveListeners()
455 connectivityManager.removeDefaultNetworkActiveListener(listener1); in removeDefaultNetworkActiveListener_shouldRemoveListeners()
459 verify(listener1, times(2)).onNetworkActive(); in removeDefaultNetworkActiveListener_shouldRemoveListeners()
DShadowSensorManagerTest.java108 TestSensorEventListener listener1 = new TestSensorEventListener(); in shouldSendSensorEventToMultipleRegisteredListeners() local
111 sensorManager.registerListener(listener1, sensor, SensorManager.SENSOR_DELAY_NORMAL); in shouldSendSensorEventToMultipleRegisteredListeners()
117 assertThat(listener1.getLatestSensorEvent().get()).isEqualTo(event); in shouldSendSensorEventToMultipleRegisteredListeners()
DShadowLocationManagerTest.java154 TestLocationListener listener1 = new TestLocationListener(); in shouldKeepTrackOfWhichProvidersAListenerIsBoundTo_withoutDuplicates_inAnyOrder() local
157 locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 1, 1, listener1); in shouldKeepTrackOfWhichProvidersAListenerIsBoundTo_withoutDuplicates_inAnyOrder()
158 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1, 1, listener1); in shouldKeepTrackOfWhichProvidersAListenerIsBoundTo_withoutDuplicates_inAnyOrder()
170 …tedProvidersForListener1, new HashSet<>(shadowLocationManager.getProvidersForListener(listener1))); in shouldKeepTrackOfWhichProvidersAListenerIsBoundTo_withoutDuplicates_inAnyOrder()
173 locationManager.removeUpdates(listener1); in shouldKeepTrackOfWhichProvidersAListenerIsBoundTo_withoutDuplicates_inAnyOrder()
174 assertEquals(0, shadowLocationManager.getProvidersForListener(listener1).size()); in shouldKeepTrackOfWhichProvidersAListenerIsBoundTo_withoutDuplicates_inAnyOrder()
DShadowAlarmManagerTest.java319 OnAlarmListener listener1 = () -> {}; in cancel_removesMatchingListeners() local
323 alarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, 20, "tag", listener1, handler); in cancel_removesMatchingListeners()
328 alarmManager.cancel(listener1); in cancel_removesMatchingListeners()
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
DLogManagerTest.java565 MockPropertyChangeListener listener1 = new MockPropertyChangeListener(); in testAddRemovePropertyChangeListener() local
568 mockManager.addPropertyChangeListener(listener1); in testAddRemovePropertyChangeListener()
569 mockManager.addPropertyChangeListener(listener1); in testAddRemovePropertyChangeListener()
572 assertNull(listener1.getEvent()); in testAddRemovePropertyChangeListener()
576 assertNotNull(listener1.getEvent()); in testAddRemovePropertyChangeListener()
580 listener1.reset(); in testAddRemovePropertyChangeListener()
584 mockManager.removePropertyChangeListener(listener1); in testAddRemovePropertyChangeListener()
587 assertNotNull(listener1.getEvent()); in testAddRemovePropertyChangeListener()
589 listener1.reset(); in testAddRemovePropertyChangeListener()
593 mockManager.removePropertyChangeListener(listener1); in testAddRemovePropertyChangeListener()
[all …]
/external/google-breakpad/src/testing/include/gmock/
Dgmock-matchers.h1281 StringMatchResultListener listener1; in MatchAndExplain() local
1282 if (!matcher1_.MatchAndExplain(x, &listener1)) { in MatchAndExplain()
1283 *listener << listener1.str(); in MatchAndExplain()
1294 const internal::string s1 = listener1.str(); in MatchAndExplain()
1368 StringMatchResultListener listener1; in MatchAndExplain() local
1369 if (matcher1_.MatchAndExplain(x, &listener1)) { in MatchAndExplain()
1370 *listener << listener1.str(); in MatchAndExplain()
1381 const internal::string s1 = listener1.str(); in MatchAndExplain()
/external/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googlemock/include/gmock/
Dgmock-matchers.h1516 StringMatchResultListener listener1;
1517 if (!matcher1_.MatchAndExplain(x, &listener1)) {
1518 *listener << listener1.str();
1529 const internal::string s1 = listener1.str();
1688 StringMatchResultListener listener1;
1689 if (matcher1_.MatchAndExplain(x, &listener1)) {
1690 *listener << listener1.str();
1701 const internal::string s1 = listener1.str();
/external/google-breakpad/src/testing/test/
Dgmock-matchers_test.cc332 StringMatchResultListener listener1; in TEST() local
333 EXPECT_TRUE(m.MatchAndExplain(42, &listener1)); in TEST()
334 EXPECT_EQ("which is 42 more than 0", listener1.str()); in TEST()
2389 StringMatchResultListener listener1; in TEST() local
2390 EXPECT_TRUE(ExplainMatchResult(PolymorphicIsEven(), 42, &listener1)); in TEST()
2391 EXPECT_EQ("% 2 == 0", listener1.str()); in TEST()
2400 StringMatchResultListener listener1; in TEST() local
2401 EXPECT_TRUE(ExplainMatchResult(is_even, 42, &listener1)); in TEST()
2402 EXPECT_EQ("% 2 == 0", listener1.str()); in TEST()
/external/tensorflow/tensorflow/python/training/
Dbasic_session_run_hooks_test.py548 listener1 = MockCheckpointSaverListener()
553 listeners=[listener1, listener2])
560 listener1_counts = listener1.get_counts()
/external/googletest/googlemock/test/
Dgmock-matchers_test.cc318 StringMatchResultListener listener1; in TEST() local
319 EXPECT_TRUE(m.MatchAndExplain(42, &listener1)); in TEST()
320 EXPECT_EQ("which is 42 more than 0", listener1.str()); in TEST()
3012 StringMatchResultListener listener1; in TEST() local
3013 EXPECT_TRUE(ExplainMatchResult(PolymorphicIsEven(), 42, &listener1)); in TEST()
3014 EXPECT_EQ("% 2 == 0", listener1.str()); in TEST()
3023 StringMatchResultListener listener1; in TEST() local
3024 EXPECT_TRUE(ExplainMatchResult(is_even, 42, &listener1)); in TEST()
3025 EXPECT_EQ("% 2 == 0", listener1.str()); in TEST()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DRetriableStreamTest.java851 ClientStreamListener listener1 = sublistenerCaptor1.getValue(); in closedWhileDraining() local
854 listener1.closed(Status.fromCode(RETRIABLE_STATUS_CODE_1), new Metadata()); in closedWhileDraining()