Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DExecutionListTest.java43 CountDownLatch countDownLatch = new CountDownLatch(3); in testRunOnPopulatedList() local
44 list.add(new MockRunnable(countDownLatch), exec); in testRunOnPopulatedList()
45 list.add(new MockRunnable(countDownLatch), exec); in testRunOnPopulatedList()
46 list.add(new MockRunnable(countDownLatch), exec); in testRunOnPopulatedList()
47 assertEquals(countDownLatch.getCount(), 3L); in testRunOnPopulatedList()
52 assertTrue(countDownLatch.await(1L, TimeUnit.SECONDS)); in testRunOnPopulatedList()
103 CountDownLatch countDownLatch = new CountDownLatch(1); in testAddAfterRun() local
104 list.add(new MockRunnable(countDownLatch), Executors.newCachedThreadPool()); in testAddAfterRun()
105 assertTrue(countDownLatch.await(1L, TimeUnit.SECONDS)); in testAddAfterRun()
125 CountDownLatch countDownLatch; field in ExecutionListTest.MockRunnable
[all …]
/external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/
DMockFutureListener.java39 private final CountDownLatch countDownLatch; field in MockFutureListener
43 this.countDownLatch = new CountDownLatch(1); in MockFutureListener()
51 countDownLatch.countDown(); in run()
62 Assert.assertTrue(countDownLatch.await(1L, TimeUnit.SECONDS)); in assertSuccess()
78 Assert.assertTrue(countDownLatch.await(1L, TimeUnit.SECONDS)); in assertException()
91 Assert.assertFalse(countDownLatch.await(1L, TimeUnit.SECONDS)); in assertTimeout()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DHttpOverSpdyTest.java201 CountDownLatch countDownLatch = new CountDownLatch(2); in synchronousSpdyRequest() local
202 executor.execute(new SpdyRequest("/r1", countDownLatch)); in synchronousSpdyRequest()
203 executor.execute(new SpdyRequest("/r2", countDownLatch)); in synchronousSpdyRequest()
204 countDownLatch.await(); in synchronousSpdyRequest()
444 CountDownLatch countDownLatch; field in HttpOverSpdyTest.SpdyRequest
445 public SpdyRequest(String path, CountDownLatch countDownLatch) { in SpdyRequest() argument
447 this.countDownLatch = countDownLatch; in SpdyRequest()
454 countDownLatch.countDown(); in run()
/external/littlemock/tests/com/google/testing/littlemock/
DLittleMockTest.java1315 CountDownLatch countDownLatch = new CountDownLatch(1); in testVerifyWithTimeout_SuccessCase() local
1316 invokeBarMethodAfterLatchAwait(countDownLatch); in testVerifyWithTimeout_SuccessCase()
1319 countDownLatch.countDown(); in testVerifyWithTimeout_SuccessCase()
1334 CountDownLatch countDownLatch = new CountDownLatch(1); in testVerifyWithTimeoutMultipleInvocations_SuccessCase() local
1335 invokeBarMethodAfterLatchAwait(countDownLatch); in testVerifyWithTimeoutMultipleInvocations_SuccessCase()
1336 invokeBarMethodAfterLatchAwait(countDownLatch); in testVerifyWithTimeoutMultipleInvocations_SuccessCase()
1339 countDownLatch.countDown(); in testVerifyWithTimeoutMultipleInvocations_SuccessCase()
1568 private Future<Void> invokeBarMethodAfterLatchAwait(final CountDownLatch countDownLatch) { in invokeBarMethodAfterLatchAwait() argument
1572 countDownLatch.await(); in invokeBarMethodAfterLatchAwait()
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
DVideoRendererGui.java498 final CountDownLatch countDownLatch = new CountDownLatch(1); in create() local
505 countDownLatch.countDown(); in create()
510 countDownLatch.await(); in create()
/external/guice/lib/build/
Dguava-testlib-16.0.1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...