/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | ViewTreeObserverTest.java | 20 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 …]
|
D | LocationManagerTest.java | 133 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/ |
D | management_api_browsertest.cc | 49 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()
|
D | management_browsertest.cc | 266 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/ |
D | shared_module_apitest.cc | 41 ExtensionTestMessageListener listener1("ready", false); in IN_PROC_BROWSER_TEST_F() local 50 EXPECT_TRUE(listener1.WaitUntilSatisfied()); in IN_PROC_BROWSER_TEST_F()
|
D | extension_context_menu_browsertest.cc | 196 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/ |
D | LogManagerTest.java | 565 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/ |
D | preference_apitest.cc | 211 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/ |
D | devtools_client_impl_unittest.cc | 798 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/ |
D | logo_tracker_unittest.cc | 649 MockLogoObserver listener1; in TEST_F() local 650 listener1.ExpectNoLogo(); in TEST_F() 651 logo_tracker_->GetLogo(&listener1); in TEST_F()
|