proxygen
|
#include <folly/executors/InlineExecutor.h>
#include <folly/executors/ManualExecutor.h>
#include <folly/executors/QueuedImmediateExecutor.h>
#include <folly/futures/Future.h>
#include <folly/portability/GTest.h>
#include <folly/synchronization/Baton.h>
Go to the source code of this file.
Classes | |
class | CrappyExecutor |
class | DoNothingExecutor |
Functions | |
TEST (ManualExecutor, runIsStable) | |
TEST (ManualExecutor, drainIsNotStable) | |
TEST (ManualExecutor, scheduleDur) | |
TEST (ManualExecutor, laterThingsDontBlockEarlierOnes) | |
TEST (ManualExecutor, orderWillNotBeQuestioned) | |
TEST (ManualExecutor, evenWhenYouSkipAheadEventsRunInProperOrder) | |
TEST (ManualExecutor, clockStartsAt0) | |
TEST (ManualExecutor, scheduleAbs) | |
TEST (ManualExecutor, advanceTo) | |
TEST (ManualExecutor, advanceBack) | |
TEST (ManualExecutor, advanceNeg) | |
TEST (ManualExecutor, waitForDoesNotDeadlock) | |
TEST (ManualExecutor, getViaDoesNotDeadlock) | |
TEST (ManualExecutor, clear) | |
TEST (ManualExecutor, drainsOnDestruction) | |
TEST (Executor, InlineExecutor) | |
TEST (Executor, QueuedImmediateExecutor) | |
TEST (Executor, Runnable) | |
TEST (Executor, ThrowableThen) | |
TEST (Executor, CrappyExecutor) | |
TEST (Executor, DoNothingExecutor) | |
TEST | ( | ManualExecutor | , |
runIsStable | |||
) |
Definition at line 29 of file ExecutorTest.cpp.
References folly::ManualExecutor::add(), folly::ManualExecutor::clear(), count, EXPECT_EQ, folly::ManualExecutor::run(), and x.
TEST | ( | ManualExecutor | , |
drainIsNotStable | |||
) |
Definition at line 46 of file ExecutorTest.cpp.
References folly::ManualExecutor::add(), count, folly::ManualExecutor::drain(), EXPECT_EQ, and x.
TEST | ( | ManualExecutor | , |
scheduleDur | |||
) |
Definition at line 59 of file ExecutorTest.cpp.
References folly::ManualExecutor::advance(), count, EXPECT_EQ, folly::ManualExecutor::run(), folly::ScheduledExecutor::schedule(), and x.
TEST | ( | ManualExecutor | , |
laterThingsDontBlockEarlierOnes | |||
) |
Definition at line 73 of file ExecutorTest.cpp.
References folly::ManualExecutor::advance(), EXPECT_FALSE, EXPECT_TRUE, folly::gen::first, folly::ScheduledExecutor::schedule(), and x.
TEST | ( | ManualExecutor | , |
orderWillNotBeQuestioned | |||
) |
Definition at line 84 of file ExecutorTest.cpp.
References folly::ManualExecutor::advance(), EXPECT_FALSE, EXPECT_TRUE, folly::gen::first, folly::ScheduledExecutor::schedule(), and x.
TEST | ( | ManualExecutor | , |
evenWhenYouSkipAheadEventsRunInProperOrder | |||
) |
Definition at line 101 of file ExecutorTest.cpp.
References folly::ManualExecutor::advance(), counter, EXPECT_EQ, folly::gen::first, folly::ScheduledExecutor::schedule(), and x.
TEST | ( | ManualExecutor | , |
clockStartsAt0 | |||
) |
Definition at line 116 of file ExecutorTest.cpp.
References EXPECT_EQ, folly::ManualExecutor::now(), and x.
TEST | ( | ManualExecutor | , |
scheduleAbs | |||
) |
Definition at line 121 of file ExecutorTest.cpp.
References folly::ManualExecutor::advance(), count, EXPECT_EQ, folly::ManualExecutor::now(), folly::ManualExecutor::scheduleAt(), and x.
TEST | ( | ManualExecutor | , |
advanceTo | |||
) |
Definition at line 130 of file ExecutorTest.cpp.
References folly::ManualExecutor::advanceTo(), count, EXPECT_EQ, now(), folly::ManualExecutor::scheduleAt(), and x.
TEST | ( | ManualExecutor | , |
advanceBack | |||
) |
Definition at line 139 of file ExecutorTest.cpp.
References folly::ManualExecutor::advance(), folly::ManualExecutor::advanceTo(), count, EXPECT_EQ, folly::ManualExecutor::now(), folly::ScheduledExecutor::schedule(), and x.
TEST | ( | ManualExecutor | , |
advanceNeg | |||
) |
Definition at line 149 of file ExecutorTest.cpp.
References folly::ManualExecutor::advance(), count, EXPECT_EQ, folly::ScheduledExecutor::schedule(), and x.
TEST | ( | ManualExecutor | , |
waitForDoesNotDeadlock | |||
) |
Definition at line 159 of file ExecutorTest.cpp.
References f, folly::makeFuture(), folly::Baton< MayBlock, Atom >::post(), folly::ManualExecutor::run(), folly::pushmi::detail::t, folly::via(), folly::Baton< MayBlock, Atom >::wait(), and folly::ManualExecutor::waitFor().
TEST | ( | ManualExecutor | , |
getViaDoesNotDeadlock | |||
) |
Definition at line 175 of file ExecutorTest.cpp.
References f, folly::makeFuture(), folly::Baton< MayBlock, Atom >::post(), folly::ManualExecutor::run(), folly::pushmi::detail::t, folly::via(), and folly::Baton< MayBlock, Atom >::wait().
TEST | ( | ManualExecutor | , |
clear | |||
) |
Definition at line 191 of file ExecutorTest.cpp.
References folly::ManualExecutor::add(), folly::ManualExecutor::advance(), folly::ManualExecutor::clear(), count, EXPECT_EQ, folly::ManualExecutor::now(), folly::ManualExecutor::run(), folly::ManualExecutor::scheduleAt(), and x.
TEST | ( | ManualExecutor | , |
drainsOnDestruction | |||
) |
Definition at line 204 of file ExecutorTest.cpp.
References folly::ManualExecutor::add(), count, EXPECT_EQ, and x.
TEST | ( | Executor | , |
InlineExecutor | |||
) |
Definition at line 213 of file ExecutorTest.cpp.
References folly::InlineExecutor::add(), counter, EXPECT_EQ, and x.
TEST | ( | Executor | , |
QueuedImmediateExecutor | |||
) |
Definition at line 227 of file ExecutorTest.cpp.
References folly::QueuedImmediateExecutor::add(), counter, EXPECT_EQ, and x.
TEST | ( | Executor | , |
Runnable | |||
) |
Definition at line 241 of file ExecutorTest.cpp.
References folly::InlineExecutor::add(), counter, EXPECT_EQ, f, and x.
TEST | ( | Executor | , |
ThrowableThen | |||
) |
Definition at line 256 of file ExecutorTest.cpp.
References EXPECT_THROW, f, and x.
TEST | ( | Executor | , |
CrappyExecutor | |||
) |
Definition at line 275 of file ExecutorTest.cpp.
References EXPECT_STREQ, EXPECT_TRUE, f, flag, folly::via(), and x.
TEST | ( | Executor | , |
DoNothingExecutor | |||
) |
Definition at line 295 of file ExecutorTest.cpp.
References DoNothingExecutor::add(), EXPECT_FALSE, EXPECT_THROW, EXPECT_TRUE, f, folly::gen::move, folly::via(), and x.