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

1234567891011

/external/libcxx/test/std/thread/futures/futures.unique_future/
H A Dcopy_ctor.fail.cpp12 // <future>
14 // class future<R>
16 // future(const future&) = delete;
18 #include <future>
26 std::future<int> f0;
27 std::future<int> f = f0; // expected-error {{call to deleted constructor of 'std::future<int>'}}
30 std::future<int &> f0;
31 std::future<in
[all...]
H A Dcopy_assign.fail.cpp12 // <future>
14 // class future<R>
16 // future& operator=(const future&) = delete;
18 #include <future>
26 std::future<int> f0, f;
30 std::future<int &> f0, f;
34 std::future<void> f0, f;
39 std::future<int> f0, f;
40 f = f0; // expected-error {{'operator=' is a private member of 'std::__1::future<in
[all...]
H A Ddefault.pass.cpp12 // <future>
14 // class future<R>
16 // future();
18 #include <future>
24 std::future<int> f;
28 std::future<int&> f;
32 std::future<void> f;
H A Dmove_assign.pass.cpp12 // <future>
14 // class future<R>
16 // future& operator=(future&& rhs);
18 #include <future>
26 std::future<T> f0 = p.get_future();
27 std::future<T> f;
34 std::future<T> f0;
35 std::future<T> f;
43 std::future<
[all...]
H A Dmove_ctor.pass.cpp12 // <future>
14 // class future<R>
16 // future(future&& rhs);
18 #include <future>
26 std::future<T> f0 = p.get_future();
27 std::future<T> f = std::move(f0);
33 std::future<T> f0;
34 std::future<T> f = std::move(f0);
41 std::future<
[all...]
/external/libcxx/test/libcxx/thread/futures/
H A Dversion.pass.cpp12 // <future>
14 #include <future>
/external/libcxx/test/std/thread/futures/futures.task/futures.task.members/
H A Dassign_copy.fail.cpp13 // <future>
19 #include <future>
H A Dctor_copy.fail.cpp13 // <future>
19 #include <future>
H A Dctor_default.pass.cpp13 // <future>
19 #include <future>
/external/guava/guava-tests/test/com/google/common/util/concurrent/
H A DListenableFutureTester.java35 * Used to test listenable future implementations.
42 private final ListenableFuture<?> future; field in class:ListenableFutureTester
45 public ListenableFutureTester(ListenableFuture<?> future) { argument
47 this.future = checkNotNull(future);
52 future.addListener(new Runnable() {
59 assertFalse(future.isDone());
60 assertFalse(future.isCancelled());
69 assertTrue(future.isDone());
70 assertFalse(future
[all...]
H A DAbstractFutureTest.java48 AbstractFuture<String> future = new AbstractFuture<String>() {
54 ExecutionException ee1 = getExpectingExecutionException(future);
55 ExecutionException ee2 = getExpectingExecutionException(future);
68 InterruptibleFuture future = new InterruptibleFuture();
69 assertTrue(future.cancel(false));
70 assertTrue(future.isCancelled());
71 assertTrue(future.isDone());
72 assertFalse(future.wasInterrupted());
73 assertFalse(future.interruptTaskWasCalled);
75 future
180 getExpectingExecutionException( AbstractFuture<String> future) argument
[all...]
H A DAsyncSettableFutureTest.java36 /** Tests the initial state of the future. */
38 AsyncSettableFuture<Integer> future = AsyncSettableFuture.create();
39 assertFalse(future.isSet());
40 assertFalse(future.isDone());
41 assertFalse(future.isCancelled());
45 AsyncSettableFuture<Integer> future = AsyncSettableFuture.create();
46 assertTrue(future.setValue(42));
47 assertTrue(future.isSet());
48 // Later attempts to set the future should return false.
49 assertFalse(future
[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/std/thread/futures/futures.promise/
H A Ddefault.pass.cpp13 // <future>
19 #include <future>
26 std::future<int> f = p.get_future();
31 std::future<int&> f = p.get_future();
36 std::future<void> f = p.get_future();
H A Dset_lvalue_at_thread_exit.pass.cpp13 // <future>
19 #include <future>
35 std::future<int&> f = p.get_future();
H A Dset_value_at_thread_exit_const.pass.cpp13 // <future>
19 #include <future>
32 std::future<int> f = p.get_future();
/external/libcxx/test/std/thread/futures/futures.task/futures.task.nonmembers/
H A Duses_allocator.pass.cpp18 // <future>
26 #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...]
/external/jemalloc/msvc/projects/vc2015/test_threads/
H A Dtest_threads_main.cpp2 #include <future>
/external/libcxx/test/libcxx/thread/futures/futures.task/
H A Dtypes.pass.cpp13 // <future>
23 #include <future>
/external/libcxx/test/std/thread/futures/futures.errors/
H A Dfuture_category.pass.cpp12 // <future>
16 #include <future>
23 assert(std::strcmp(ec.name(), "future") == 0);
/external/libcxx/test/std/thread/futures/futures.future_error/
H A Dtypes.pass.cpp12 // <future>
16 #include <future>
/external/libcxx/test/std/thread/futures/futures.overview/
H A Dfuture_status.pass.cpp12 // <future>
21 #include <future>
H A Dis_error_code_enum_future_errc.pass.cpp12 // <future>
16 #include <future>

Completed in 698 milliseconds

1234567891011