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.java20 final CountDownLatch startLatch = new CountDownLatch(1); in testAsyncServiceLifecycle() local
26 assertEquals(1, startLatch.getCount()); in testAsyncServiceLifecycle()
29 startLatch.countDown(); in testAsyncServiceLifecycle()
34 assertEquals(0, startLatch.getCount()); in testAsyncServiceLifecycle()
43 assertTrue(startLatch.await(2, TimeUnit.SECONDS)); in testAsyncServiceLifecycle()
54 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()