Searched refs:future (Results 1 - 25 of 239) sorted by relevance

12345678910

/external/guava/guava-tests/test/com/google/common/util/concurrent/
H A DListenableFutureTester.java32 * 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 DAbstractFutureTest.java47 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 DSettableFutureTest.java31 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 Dis_error_code_enum_future_errc.pass.cpp10 // <future>
14 #include <future>
H A Dfuture_status.pass.cpp10 // <future>
19 #include <future>
/external/libcxx/test/thread/futures/futures.unique_future/
H A Ddefault.pass.cpp10 // <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 Dcopy_assign.fail.cpp10 // <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 Dcopy_ctor.fail.cpp10 // <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 Dmove_assign.pass.cpp10 // <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 Dmove_ctor.pass.cpp10 // <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 Dversion.pass.cpp10 // <future>
12 #include <future>
/external/libcxx/test/thread/futures/futures.promise/
H A Ddefault.pass.cpp10 // <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 Dset_lvalue_at_thread_exit.pass.cpp10 // <future>
16 #include <future>
32 std::future<int&> f = p.get_future();
H A Dset_value_at_thread_exit_const.pass.cpp10 // <future>
16 #include <future>
29 std::future<int> f = p.get_future();
H A Dset_value_at_thread_exit_void.pass.cpp10 // <future>
16 #include <future>
32 std::future<void> f = p.get_future();
H A Dset_value_void.pass.cpp10 // <future>
16 #include <future>
24 std::future<T> f = p.get_future();
/external/libcxx/test/thread/futures/futures.tas/futures.task.nonmembers/
H A Duses_allocator.pass.cpp10 // <future>
18 #include <future>
/external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/
H A DAbstractCheckedFutureTest.java70 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 DAbstractListenableFutureTest.java44 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 DMockFutureListener.java39 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 Dfuture_category.pass.cpp10 // <future>
14 #include <future>
21 assert(std::strcmp(ec.name(), "future") == 0);
/external/libcxx/test/thread/futures/futures.future_error/
H A Dtypes.pass.cpp10 // <future>
14 #include <future>
/external/libcxx/test/thread/futures/futures.tas/futures.task.members/
H A Dctor_default.pass.cpp10 // <future>
16 #include <future>
/external/libcxx/test/thread/futures/futures.tas/
H A Dtypes.pass.cpp10 // <future>
18 #include <future>
/external/chromium_org/chrome/common/extensions/docs/server2/
H A Dpersistent_object_store.py8 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]

Completed in 1415 milliseconds

12345678910