Home
last modified time | relevance | path

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

/external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/
DAbstractListenableFutureTest.java77 final CountDownLatch successLatch = new CountDownLatch(1); in testGetBlocksUntilValueAvailable() local
86 successLatch.countDown(); in testGetBlocksUntilValueAvailable()
96 assertTrue(successLatch.await(10, TimeUnit.SECONDS)); in testGetBlocksUntilValueAvailable()
134 final CountDownLatch successLatch = new CountDownLatch(1); in testCanceledFutureThrowsCancellation() local
143 successLatch.countDown(); in testCanceledFutureThrowsCancellation()
158 assertTrue(successLatch.await(200, TimeUnit.MILLISECONDS)); in testCanceledFutureThrowsCancellation()
164 final CountDownLatch successLatch = new CountDownLatch(1); in testListenersNotifiedOnError() local
182 successLatch.countDown(); in testListenersNotifiedOnError()
194 assertTrue(successLatch.await(200, TimeUnit.MILLISECONDS)); in testListenersNotifiedOnError()
DAbstractCheckedFutureTest.java101 final CountDownLatch successLatch = new CountDownLatch(1); in testCheckedGetThrowsApplicationExceptionOnInterruption() local
118 successLatch.countDown(); in testCheckedGetThrowsApplicationExceptionOnInterruption()
127 assertTrue(successLatch.await(500, TimeUnit.MILLISECONDS)); in testCheckedGetThrowsApplicationExceptionOnInterruption()