Home
last modified time | relevance | path

Searched refs:testListener (Results 1 – 11 of 11) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowWifiP2pManagerTest.java39 TestActionListener testListener = new TestActionListener(); in createGroup_success() local
40 manager.createGroup(channel, testListener); in createGroup_success()
41 assertThat(testListener.success).isTrue(); in createGroup_success()
53 TestActionListener testListener = new TestActionListener(); in createGroup_fail() local
57 manager.createGroup(channel, testListener); in createGroup_fail()
62 assertThat(testListener.success).isFalse(); in createGroup_fail()
63 assertThat(testListener.reason).isEqualTo(WifiP2pManager.BUSY); in createGroup_fail()
70 TestActionListener testListener = new TestActionListener(); in clearActionFailure() local
71 manager.createGroup(channel, testListener); in clearActionFailure()
72 assertThat(testListener.success).isFalse(); in clearActionFailure()
[all …]
DShadowViewGroupTest.java380 TestOnHierarchyChangeListener testListener = new TestOnHierarchyChangeListener(); in removeAllViews_shouldCallOnChildViewRemovedWithEachChild() local
382 viewGroup.setOnHierarchyChangeListener(testListener); in removeAllViews_shouldCallOnChildViewRemovedWithEachChild()
384 assertTrue(testListener.wasCalled()); in removeAllViews_shouldCallOnChildViewRemovedWithEachChild()
/external/exoplayer/tree/library/core/src/androidTest/java/com/google/android/exoplayer2/
DStreamVolumeManagerTest.java43 private TestListener testListener; field in StreamVolumeManagerTest
52 testListener = new TestListener(); in setUp()
58 new StreamVolumeManager(context, new Handler(Looper.myLooper()), testListener)); in setUp()
111 assertThat(testListener.lastStreamVolume).isEqualTo(targetVolume); in setVolume_changesStreamVolume()
148 assertThat(testListener.lastStreamVolume).isEqualTo(targetVolume); in increaseVolume_increasesStreamVolumeByOne()
182 assertThat(testListener.lastStreamVolume).isEqualTo(targetVolume); in decreaseVolume_decreasesStreamVolumeByOne()
215 assertThat(testListener.lastStreamVolumeMuted).isTrue(); in setVolumeMuted_changesMuteState()
219 assertThat(testListener.lastStreamVolumeMuted).isFalse(); in setVolumeMuted_changesMuteState()
220 assertThat(testListener.lastStreamVolume).isEqualTo(maxVolume); in setVolumeMuted_changesMuteState()
245 assertThat(testListener.lastStreamType).isEqualTo(testStreamType); in setStreamType_notifiesStreamTypeAndVolume()
[all …]
/external/guice/extensions/struts2/test/com/google/inject/struts2/
DStruts2FactoryTest.java66 TestListener testListener =
76 assertEquals(TODAY, testListener.getInjector().getInstance(Date.class));
/external/testng/src/main/java/org/testng/xml/
DResultXMLParser.java29 public ResultXMLParser(IRemoteSuiteListener suiteListener, IRemoteTestListener testListener) { in ResultXMLParser() argument
31 m_testListener = testListener; in ResultXMLParser()
DResultContentHandler.java51 IRemoteTestListener testListener, boolean resolveClasses /* ignored */) { in ResultContentHandler() argument
53 m_testListener = testListener; in ResultContentHandler()
/external/autotest/client/site_tests/power_LoadTest/extension/
Dtest.js48 function testListener(request, sender, sendResponse) { function
260 chrome.runtime.onMessage.removeListener(testListener);
303 chrome.runtime.onMessage.addListener(testListener);
311 chrome.runtime.onMessage.addListener(testListener);
/external/guava/android/guava-tests/test/com/google/common/cache/
DCacheBuilderTest.java371 RemovalListener<Object, Object> testListener = nullRemovalListener(); in testRemovalListener_setTwice() local
372 CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder().removalListener(testListener); in testRemovalListener_setTwice()
375 builder = builder.removalListener(testListener); in testRemovalListener_setTwice()
DLocalCacheTest.java518 RemovalListener<Object, Object> testListener = TestingRemovalListeners.nullRemovalListener(); in testSetRemovalListener() local
520 makeLocalCache(createCacheBuilder().removalListener(testListener)); in testSetRemovalListener()
521 assertSame(testListener, map.removalListener); in testSetRemovalListener()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderTest.java458 RemovalListener<Object, Object> testListener = nullRemovalListener(); in testRemovalListener_setTwice() local
459 CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder().removalListener(testListener); in testRemovalListener_setTwice()
462 builder = builder.removalListener(testListener); in testRemovalListener_setTwice()
DLocalCacheTest.java515 RemovalListener<Object, Object> testListener = TestingRemovalListeners.nullRemovalListener(); in testSetRemovalListener() local
517 makeLocalCache(createCacheBuilder().removalListener(testListener)); in testSetRemovalListener()
518 assertSame(testListener, map.removalListener); in testSetRemovalListener()