Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DJdkFutureAdaptersTest.java63 SingleCallListener singleCallListener = new SingleCallListener(); in testListenInPoolThreadIgnoresExecutorWhenDelegateIsDone() local
64 singleCallListener.expectCall(); in testListenInPoolThreadIgnoresExecutorWhenDelegateIsDone()
67 assertFalse(singleCallListener.wasCalled()); in testListenInPoolThreadIgnoresExecutorWhenDelegateIsDone()
72 listenableFuture.addListener(singleCallListener, sameThreadExecutor()); in testListenInPoolThreadIgnoresExecutorWhenDelegateIsDone()
78 assertTrue(singleCallListener.wasCalled()); in testListenInPoolThreadIgnoresExecutorWhenDelegateIsDone()
91 SingleCallListener singleCallListener = new SingleCallListener(); in testListenInPoolThreadUsesGivenExecutor() local
92 singleCallListener.expectCall(); in testListenInPoolThreadUsesGivenExecutor()
95 assertFalse(singleCallListener.wasCalled()); in testListenInPoolThreadUsesGivenExecutor()
98 listenableFuture.addListener(singleCallListener, executorService); in testListenInPoolThreadUsesGivenExecutor()
101 singleCallListener.waitForCall(); in testListenInPoolThreadUsesGivenExecutor()
[all …]