Home
last modified time | relevance | path

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

/external/guice/extensions/service/test/com/google/inject/service/
DSingleServiceIntegrationTest.java24 final CountDownLatch startLatch = new CountDownLatch(1); in testAsyncServiceLifecycle() local
28 assertEquals(1, startLatch.getCount()); in testAsyncServiceLifecycle()
31 startLatch.countDown(); in testAsyncServiceLifecycle()
35 assertEquals(0, startLatch.getCount()); in testAsyncServiceLifecycle()
44 assertTrue(startLatch.await(2, TimeUnit.SECONDS)); in testAsyncServiceLifecycle()
55 assertEquals(0, startLatch.getCount()); in testAsyncServiceLifecycle()
/external/junit/src/main/java/org/junit/internal/runners/statements/
DFailOnTimeout.java143 private final CountDownLatch startLatch = new CountDownLatch(1); field in FailOnTimeout.CallableStatement
147 startLatch.countDown(); in call()
158 startLatch.await(); in awaitStarted()
/external/guava/guava-testlib/test/com/google/common/testing/
DFakeTickerTest.java151 final CountDownLatch startLatch = new CountDownLatch(numberOfThreads); in runConcurrentTest() local
157 startLatch.countDown(); in runConcurrentTest()
158 startLatch.await(); in runConcurrentTest()