Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DJdkFutureAdaptersTest.java50 ListenableFuture<String> listenableFuture = immediateFuture(DATA1); in testListenInPoolThreadReturnsSameFuture() local
51 assertSame(listenableFuture, listenInPoolThread(listenableFuture)); in testListenInPoolThreadReturnsSameFuture()
60 ListenableFuture<String> listenableFuture = in testListenInPoolThreadIgnoresExecutorWhenDelegateIsDone() local
68 assertTrue(listenableFuture.isDone()); // We call AbstractFuture#set above. in testListenInPoolThreadIgnoresExecutorWhenDelegateIsDone()
72 listenableFuture.addListener(singleCallListener, sameThreadExecutor()); in testListenInPoolThreadIgnoresExecutorWhenDelegateIsDone()
73 assertEquals(DATA1, listenableFuture.get()); in testListenInPoolThreadIgnoresExecutorWhenDelegateIsDone()
79 assertTrue(listenableFuture.isDone()); in testListenInPoolThreadIgnoresExecutorWhenDelegateIsDone()
88 ListenableFuture<String> listenableFuture = in testListenInPoolThreadUsesGivenExecutor() local
96 assertFalse(listenableFuture.isDone()); in testListenInPoolThreadUsesGivenExecutor()
98 listenableFuture.addListener(singleCallListener, executorService); in testListenInPoolThreadUsesGivenExecutor()
[all …]