Home
last modified time | relevance | path

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

/external/robolectric/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/chromium_org/chrome/browser/extensions/api/management/
Dmanagement_api_browsertest.cc49 ExtensionTestMessageListener listener1("ready", false); in IN_PROC_BROWSER_TEST_F() local
52 ASSERT_TRUE(listener1.WaitUntilSatisfied()); in IN_PROC_BROWSER_TEST_F()
61 ExtensionTestMessageListener listener1("app_launched", false); in IN_PROC_BROWSER_TEST_F() local
69 ASSERT_TRUE(listener1.WaitUntilSatisfied()); in IN_PROC_BROWSER_TEST_F()
75 ExtensionTestMessageListener listener1("success", false); in IN_PROC_BROWSER_TEST_F() local
80 ASSERT_TRUE(listener1.WaitUntilSatisfied()); in IN_PROC_BROWSER_TEST_F()
85 ExtensionTestMessageListener listener1("success", false); in IN_PROC_BROWSER_TEST_F() local
90 ASSERT_TRUE(listener1.WaitUntilSatisfied()); in IN_PROC_BROWSER_TEST_F()
95 ExtensionTestMessageListener listener1("success", false); in IN_PROC_BROWSER_TEST_F() local
100 ASSERT_TRUE(listener1.WaitUntilSatisfied()); in IN_PROC_BROWSER_TEST_F()
Dmanagement_browsertest.cc266 ExtensionTestMessageListener listener1("v1 installed", false); in IN_PROC_BROWSER_TEST_F() local
275 listener1.WaitUntilSatisfied(); in IN_PROC_BROWSER_TEST_F()
351 ExtensionTestMessageListener listener1("v1 installed", false); in IN_PROC_BROWSER_TEST_F() local
360 listener1.WaitUntilSatisfied(); in IN_PROC_BROWSER_TEST_F()
544 ExtensionTestMessageListener listener1("ready", false); in IN_PROC_BROWSER_TEST_F() local
547 ASSERT_TRUE(listener1.WaitUntilSatisfied()); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/chrome/browser/extensions/
Dshared_module_apitest.cc41 ExtensionTestMessageListener listener1("ready", false); in IN_PROC_BROWSER_TEST_F() local
50 EXPECT_TRUE(listener1.WaitUntilSatisfied()); in IN_PROC_BROWSER_TEST_F()
Dextension_context_menu_browsertest.cc196 ExtensionTestMessageListener listener1("created item", false); in IN_PROC_BROWSER_TEST_F() local
201 ASSERT_TRUE(listener1.WaitUntilSatisfied()); in IN_PROC_BROWSER_TEST_F()
300 ExtensionTestMessageListener listener1("created item", false); in IN_PROC_BROWSER_TEST_F() local
302 ASSERT_TRUE(listener1.WaitUntilSatisfied()); in IN_PROC_BROWSER_TEST_F()
399 ExtensionTestMessageListener listener1("test1 create finished", false); in IN_PROC_BROWSER_TEST_F() local
402 listener1.WaitUntilSatisfied(); in IN_PROC_BROWSER_TEST_F()
/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/chromium_org/chrome/browser/extensions/api/preference/
Dpreference_apitest.cc211 ExtensionTestMessageListener listener1("changeDefault regular ready", true); in IN_PROC_BROWSER_TEST_F() local
266 EXPECT_TRUE(listener1.WaitUntilSatisfied()); // Regular ready in IN_PROC_BROWSER_TEST_F()
268 listener1.Reply("ok"); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/chrome/test/chromedriver/chrome/
Ddevtools_client_impl_unittest.cc798 OnConnectedListener listener1("DOM.getDocument", &client); in TEST_F() local
804 listener1.VerifyCalled(); in TEST_F()
814 OnConnectedListener listener1("DOM.getDocument", &client); in TEST_F() local
819 listener1.VerifyCalled(); in TEST_F()
917 OnEventListener listener1(&client, &listener2); in TEST_F() local
918 client.AddListener(&listener1); in TEST_F()
1136 MockCommandListener listener1; in TEST_F() local
1137 listener1.callback_ = base::Bind(&HandleReceivedEvents); in TEST_F()
1139 client.AddListener(&listener1); in TEST_F()
/external/chromium_org/components/search_provider_logos/
Dlogo_tracker_unittest.cc649 MockLogoObserver listener1; in TEST_F() local
650 listener1.ExpectNoLogo(); in TEST_F()
651 logo_tracker_->GetLogo(&listener1); in TEST_F()