/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
H A D | ListenableFutureTester.java | 32 * Used to test listenable future implementations. 39 private final ListenableFuture<?> future; field in class:ListenableFutureTester 42 public ListenableFutureTester(ListenableFuture<?> future) { argument 44 this.future = future; 49 future.addListener(new Runnable() { 56 assertFalse(future.isDone()); 57 assertFalse(future.isCancelled()); 66 assertTrue(future.isDone()); 67 assertFalse(future [all...] |
H A D | AbstractFutureTest.java | 47 AbstractFuture<String> future = new AbstractFuture<String>() { 53 ExecutionException ee1 = getExpectingExecutionException(future); 54 ExecutionException ee2 = getExpectingExecutionException(future); 67 InterruptibleFuture future = new InterruptibleFuture(); 68 assertTrue(future.cancel(false)); 69 assertTrue(future.isCancelled()); 70 assertTrue(future.isDone()); 71 assertFalse(future.wasInterrupted); 75 InterruptibleFuture future = new InterruptibleFuture(); 76 assertTrue(future 165 getExpectingExecutionException( AbstractFuture<String> future) argument [all...] |
H A D | SettableFutureTest.java | 31 private SettableFuture<String> future; field in class:SettableFutureTest 38 future = SettableFuture.create(); 39 tester = new ListenableFutureTester(future); 45 future.get(5, TimeUnit.MILLISECONDS); 51 assertTrue(future.set("value")); 56 assertTrue(future.setException(new Exception("failure"))); 62 future.setException(null); 66 assertFalse(future.isDone()); 67 assertTrue(future.setException(new Exception("failure"))); 72 assertTrue(future [all...] |
/external/libcxx/test/thread/futures/futures.overview/ |
H A D | is_error_code_enum_future_errc.pass.cpp | 10 // <future> 14 #include <future>
|
H A D | future_status.pass.cpp | 10 // <future> 19 #include <future>
|
/external/libcxx/test/thread/futures/futures.unique_future/ |
H A D | default.pass.cpp | 10 // <future> 12 // class future<R> 14 // future(); 16 #include <future> 22 std::future<int> f; 26 std::future<int&> f; 30 std::future<void> f;
|
H A D | copy_assign.fail.cpp | 10 // <future> 12 // class future<R> 14 // future& operator=(const future&) = delete; 16 #include <future> 25 std::future<T> f0 = p.get_future(); 26 std::future<T> f; 33 std::future<T> f0; 34 std::future<T> f; 42 std::future< [all...] |
H A D | copy_ctor.fail.cpp | 10 // <future> 12 // class future<R> 14 // future(const future&) = delete; 16 #include <future> 24 std::future<T> f0 = p.get_future(); 25 std::future<T> f = f0; 31 std::future<T> f0; 32 std::future<T> f = f0; 39 std::future< [all...] |
H A D | move_assign.pass.cpp | 10 // <future> 12 // class future<R> 14 // future& operator=(future&& rhs); 16 #include <future> 25 std::future<T> f0 = p.get_future(); 26 std::future<T> f; 33 std::future<T> f0; 34 std::future<T> f; 42 std::future< [all...] |
H A D | move_ctor.pass.cpp | 10 // <future> 12 // class future<R> 14 // future(future&& rhs); 16 #include <future> 25 std::future<T> f0 = p.get_future(); 26 std::future<T> f = std::move(f0); 32 std::future<T> f0; 33 std::future<T> f = std::move(f0); 40 std::future< [all...] |
/external/libcxx/test/thread/futures/ |
H A D | version.pass.cpp | 10 // <future> 12 #include <future>
|
/external/libcxx/test/thread/futures/futures.promise/ |
H A D | default.pass.cpp | 10 // <future> 16 #include <future> 23 std::future<int> f = p.get_future(); 28 std::future<int&> f = p.get_future(); 33 std::future<void> f = p.get_future();
|
H A D | set_lvalue_at_thread_exit.pass.cpp | 10 // <future> 16 #include <future> 32 std::future<int&> f = p.get_future();
|
H A D | set_value_at_thread_exit_const.pass.cpp | 10 // <future> 16 #include <future> 29 std::future<int> f = p.get_future();
|
H A D | set_value_at_thread_exit_void.pass.cpp | 10 // <future> 16 #include <future> 32 std::future<void> f = p.get_future();
|
H A D | set_value_void.pass.cpp | 10 // <future> 16 #include <future> 24 std::future<T> f = p.get_future();
|
/external/libcxx/test/thread/futures/futures.tas/futures.task.nonmembers/ |
H A D | uses_allocator.pass.cpp | 10 // <future> 18 #include <future>
|
/external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/ |
H A D | AbstractCheckedFutureTest.java | 70 final CheckedFuture<Boolean, ?> future = 73 assertFalse(future.isDone()); 74 assertFalse(future.isCancelled()); 79 future.cancel(true); 84 future.checkedGet(); 90 assertTrue(future.isDone()); 91 assertTrue(future.isCancelled()); 97 final CheckedFuture<Boolean, ?> future = 103 assertFalse(future.isDone()); 104 assertFalse(future [all...] |
H A D | AbstractListenableFutureTest.java | 44 protected ListenableFuture<Boolean> future; field in class:AbstractListenableFutureTest 49 // Create a latch and a future that waits on the latch. 51 future = createListenableFuture(Boolean.TRUE, null, latch); 62 * Constructs a listenable future with a value available after the latch 74 assertFalse(future.isDone()); 75 assertFalse(future.isCancelled()); 80 // Wait on the future in a separate thread. 85 assertSame(Boolean.TRUE, future.get()); 93 // Release the future value. 102 assertTrue(future [all...] |
H A D | MockFutureListener.java | 39 private final ListenableFuture<?> future; field in class:MockFutureListener 41 public MockFutureListener(ListenableFuture<?> future) { argument 43 this.future = future; 45 future.addListener(this, MoreExecutors.sameThreadExecutor()); 55 * Asserts that the future returns the expected data. 64 Assert.assertEquals(expectedData, future.get()); 72 * Asserts that the future throws an {@code ExecutableException} and that the 80 future.get();
|
/external/libcxx/test/thread/futures/futures.errors/ |
H A D | future_category.pass.cpp | 10 // <future> 14 #include <future> 21 assert(std::strcmp(ec.name(), "future") == 0);
|
/external/libcxx/test/thread/futures/futures.future_error/ |
H A D | types.pass.cpp | 10 // <future> 14 #include <future>
|
/external/libcxx/test/thread/futures/futures.tas/futures.task.members/ |
H A D | ctor_default.pass.cpp | 10 // <future> 16 #include <future>
|
/external/libcxx/test/thread/futures/futures.tas/ |
H A D | types.pass.cpp | 10 // <future> 18 #include <future>
|
/external/chromium_org/chrome/common/extensions/docs/server2/ |
H A D | persistent_object_store.py | 8 from future import Future 26 [future.wait() for future in futures] 34 return dict((key, future.get_result().GetValue()) 35 for key, future in db_futures.iteritems() 36 if future.get_result() is not None) 47 [future.wait() for future in futures]
|