Home
last modified time | relevance | path

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

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DViewTreeObserverTest.java20 private TestOnGlobalLayoutListener listener1; field in ViewTreeObserverTest
26 listener1 = new TestOnGlobalLayoutListener(); in setUp()
32 viewTreeObserver.addOnGlobalLayoutListener(listener1); in shouldRecordMultipleOnGlobalLayoutListenersAndFireThemWhenAsked()
36 assertTrue(listener1.onGlobalLayoutWasCalled); in shouldRecordMultipleOnGlobalLayoutListenersAndFireThemWhenAsked()
39 listener1.reset(); in shouldRecordMultipleOnGlobalLayoutListenersAndFireThemWhenAsked()
41 viewTreeObserver.removeGlobalOnLayoutListener(listener1); in shouldRecordMultipleOnGlobalLayoutListenersAndFireThemWhenAsked()
44 assertFalse(listener1.onGlobalLayoutWasCalled); in shouldRecordMultipleOnGlobalLayoutListenersAndFireThemWhenAsked()
47 listener1.reset(); in shouldRecordMultipleOnGlobalLayoutListenersAndFireThemWhenAsked()
52 assertFalse(listener1.onGlobalLayoutWasCalled); in shouldRecordMultipleOnGlobalLayoutListenersAndFireThemWhenAsked()
58 viewTreeObserver.addOnGlobalLayoutListener(listener1); in getGlobalLayoutListeners_shouldReturnTheListeners()
[all …]
DLocationManagerTest.java133 TestLocationListener listener1 = new TestLocationListener(); in shouldKeepTrackOfWhichProvidersAListenerIsBoundTo_withoutDuplicates_inAnyOrder() local
136 locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 1, 1, listener1); in shouldKeepTrackOfWhichProvidersAListenerIsBoundTo_withoutDuplicates_inAnyOrder()
137 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1, 1, listener1); in shouldKeepTrackOfWhichProvidersAListenerIsBoundTo_withoutDuplicates_inAnyOrder()
149 …vidersForListener1, new HashSet<String>(shadowLocationManager.getProvidersForListener(listener1))); in shouldKeepTrackOfWhichProvidersAListenerIsBoundTo_withoutDuplicates_inAnyOrder()
152 locationManager.removeUpdates(listener1); in shouldKeepTrackOfWhichProvidersAListenerIsBoundTo_withoutDuplicates_inAnyOrder()
153 assertEquals(0, shadowLocationManager.getProvidersForListener(listener1).size()); in shouldKeepTrackOfWhichProvidersAListenerIsBoundTo_withoutDuplicates_inAnyOrder()
/external/mockito/src/test/java/org/mockitousage/debugging/
DInvocationListenerCallbackTest.java44 RememberingListener listener1 = new RememberingListener(); in should_call_all_listener_when_mock_return_normally() local
46 Foo foo = mock(Foo.class, withSettings().invocationListeners(listener1, listener2)); in should_call_all_listener_when_mock_return_normally()
53 assertThat(listener1).is(notifiedFor("rosemary", getClass().getSimpleName())); in should_call_all_listener_when_mock_return_normally()
60 InvocationListener listener1 = mock(InvocationListener.class, "listener1"); in should_call_all_listener_when_mock_throws_exception() local
62 Foo foo = mock(Foo.class, withSettings().invocationListeners(listener1, listener2)); in should_call_all_listener_when_mock_throws_exception()
71 InOrder orderedVerify = inOrder(listener1, listener2); in should_call_all_listener_when_mock_throws_exception()
72 orderedVerify.verify(listener1).reportInvocation(any(MethodInvocationReport.class)); in should_call_all_listener_when_mock_throws_exception()
DVerificationListenerCallBackTest.java51 RememberingListener listener1 = new RememberingListener(); in should_call_all_listeners_on_verify() local
53 Mockito.framework().addListener(listener1).addListener(listener2); in should_call_all_listeners_on_verify()
63 assertThat(listener1).is(notifiedFor(foo, never, invocationWanted)); in should_call_all_listeners_on_verify()
/external/mockito/src/test/java/org/mockito/internal/handler/
DInvocationNotifierHandlerTest.java43 @Mock private InvocationListener listener1; field in InvocationNotifierHandlerTest
56 … MockSettingsImpl<ArrayList<Answer<?>>>().invocationListeners(customListener, listener1, listener2) in setUp()
69 …verify(listener1).reportInvocation(new NotifiedMethodInvocationReport(invocation, "returned value"… in should_notify_all_listeners_when_calling_delegate_handler()
83 …verify(listener1).reportInvocation(new NotifiedMethodInvocationReport(invocation, (Object) compute… in should_notify_all_listeners_when_called_delegate_handler_returns_ex()
99 …verify(listener1).reportInvocation(new NotifiedMethodInvocationReport(invocation, parseException)); in should_notify_all_listeners_when_called_delegate_handler_throws_exception_and_rethrow_it()
/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/v8/testing/gmock/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/googletest/googlemock/include/gmock/
Dgmock-matchers.h1516 StringMatchResultListener listener1;
1517 if (!matcher1_.MatchAndExplain(x, &listener1)) {
1518 *listener << listener1.str();
1529 const std::string s1 = listener1.str();
1688 StringMatchResultListener listener1;
1689 if (matcher1_.MatchAndExplain(x, &listener1)) {
1690 *listener << listener1.str();
1701 const std::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/googletest/googlemock/test/
Dgmock-matchers_test.cc358 StringMatchResultListener listener1; in TEST() local
359 EXPECT_TRUE(m.MatchAndExplain(42, &listener1)); in TEST()
360 EXPECT_EQ("which is 42 more than 0", listener1.str()); in TEST()
2557 StringMatchResultListener listener1; in TEST() local
2558 EXPECT_TRUE(ExplainMatchResult(PolymorphicIsEven(), 42, &listener1)); in TEST()
2559 EXPECT_EQ("% 2 == 0", listener1.str()); in TEST()
2568 StringMatchResultListener listener1; in TEST() local
2569 EXPECT_TRUE(ExplainMatchResult(is_even, 42, &listener1)); in TEST()
2570 EXPECT_EQ("% 2 == 0", listener1.str()); in TEST()
/external/v8/testing/gmock/test/
Dgmock-matchers_test.cc358 StringMatchResultListener listener1; in TEST() local
359 EXPECT_TRUE(m.MatchAndExplain(42, &listener1)); in TEST()
360 EXPECT_EQ("which is 42 more than 0", listener1.str()); in TEST()
2553 StringMatchResultListener listener1; in TEST() local
2554 EXPECT_TRUE(ExplainMatchResult(PolymorphicIsEven(), 42, &listener1)); in TEST()
2555 EXPECT_EQ("% 2 == 0", listener1.str()); in TEST()
2564 StringMatchResultListener listener1; in TEST() local
2565 EXPECT_TRUE(ExplainMatchResult(is_even, 42, &listener1)); in TEST()
2566 EXPECT_EQ("% 2 == 0", listener1.str()); in TEST()
/external/fmtlib/test/gmock/
Dgmock.h6097 StringMatchResultListener listener1;
6098 if (!matcher1_.MatchAndExplain(x, &listener1)) {
6099 *listener << listener1.str();
6110 const internal::string s1 = listener1.str();
6269 StringMatchResultListener listener1;
6270 if (matcher1_.MatchAndExplain(x, &listener1)) {
6271 *listener << listener1.str();
6282 const internal::string s1 = listener1.str();