proxygen
|
#include <queue>
#include <folly/executors/InlineExecutor.h>
#include <folly/futures/Future.h>
#include <folly/io/async/EventBase.h>
#include <folly/portability/GTest.h>
#include <folly/synchronization/Baton.h>
Go to the source code of this file.
Classes | |
struct | MoveFlag |
Functions | |
TEST (Wait, waitImmediate) | |
TEST (Wait, wait) | |
TEST (Wait, waitReplacesSelf) | |
TEST (Wait, waitWithDuration) | |
TEST (Wait, multipleWait) | |
TEST (Wait, WaitPlusThen) | |
TEST | ( | Wait | , |
waitImmediate | |||
) |
Definition at line 29 of file WaitTest.cpp.
References folly::collectAll(), folly::collectAllSemiFuture(), EXPECT_EQ, folly::makeFuture(), and folly::gen::move.
TEST | ( | Wait | , |
wait | |||
) |
Definition at line 53 of file WaitTest.cpp.
References EXPECT_EQ, f, flag, folly::Promise< T >::getFuture(), folly::gen::move, folly::Promise< T >::setValue(), and folly::pushmi::detail::t.
TEST | ( | Wait | , |
waitReplacesSelf | |||
) |
Definition at line 91 of file WaitTest.cpp.
References EXPECT_FALSE, and folly::makeFuture().
TEST | ( | Wait | , |
waitWithDuration | |||
) |
Definition at line 130 of file WaitTest.cpp.
References b, folly::collectAll(), EXPECT_EQ, EXPECT_FALSE, EXPECT_GE, EXPECT_TRUE, f, folly::Promise< T >::getFuture(), folly::Promise< T >::getSemiFuture(), folly::futures::detail::FutureBase< T >::isReady(), folly::makeFuture(), folly::gen::move, now(), folly::Baton< MayBlock, Atom >::post(), folly::Promise< T >::setValue(), start, folly::pushmi::detail::t, folly::Baton< MayBlock, Atom >::wait(), and folly::Future< T >::wait().
TEST | ( | Wait | , |
multipleWait | |||
) |
Definition at line 274 of file WaitTest.cpp.
References EXPECT_FALSE, EXPECT_TRUE, f, i, and folly::futures::sleep().
TEST | ( | Wait | , |
WaitPlusThen | |||
) |
Definition at line 287 of file WaitTest.cpp.
References b, EXPECT_EQ, EXPECT_FALSE, EXPECT_NO_THROW, EXPECT_TRUE, f, folly::Promise< T >::getFuture(), folly::Promise< T >::getSemiFuture(), folly::gen::move, folly::Baton< MayBlock, Atom >::post(), folly::Promise< T >::setValue(), folly::pushmi::detail::t, v, and folly::Baton< MayBlock, Atom >::wait().