|
proxygen
|
#include <chrono>#include <folly/executors/CPUThreadPoolExecutor.h>#include <folly/executors/InlineExecutor.h>#include <folly/executors/SerialExecutor.h>#include <folly/portability/GTest.h>#include <folly/synchronization/Baton.h>Go to the source code of this file.
Functions | |
| void | SimpleTest (std::shared_ptr< folly::Executor > const &parent) |
| TEST (SerialExecutor, Simple) | |
| TEST (SerialExecutor, SimpleInline) | |
| TEST (SerialExecutor, Afterlife) | |
| void | RecursiveAddTest (std::shared_ptr< folly::Executor > const &parent) |
| TEST (SerialExecutor, RecursiveAdd) | |
| TEST (SerialExecutor, RecursiveAddInline) | |
| TEST (SerialExecutor, ExecutionThrows) | |
| void RecursiveAddTest | ( | std::shared_ptr< folly::Executor > const & | parent | ) |
Definition at line 106 of file SerialExecutorTest.cpp.
References burnMs(), folly::pushmi::executor, EXPECT_EQ, folly::getKeepAliveToken(), i, folly::Baton< MayBlock, Atom >::post(), values(), and folly::Baton< MayBlock, Atom >::wait().
Referenced by TEST().
| void SimpleTest | ( | std::shared_ptr< folly::Executor > const & | parent | ) |
Definition at line 34 of file SerialExecutorTest.cpp.
References burnMs(), folly::pushmi::executor, EXPECT_EQ, folly::getKeepAliveToken(), i, folly::Baton< MayBlock, Atom >::post(), values(), and folly::Baton< MayBlock, Atom >::wait().
Referenced by TEST().
| TEST | ( | SerialExecutor | , |
| Simple | |||
| ) |
Definition at line 59 of file SerialExecutorTest.cpp.
References SimpleTest().
| TEST | ( | SerialExecutor | , |
| SimpleInline | |||
| ) |
Definition at line 62 of file SerialExecutorTest.cpp.
References SimpleTest().
| TEST | ( | SerialExecutor | , |
| Afterlife | |||
| ) |
Definition at line 69 of file SerialExecutorTest.cpp.
References burnMs(), folly::pushmi::executor, EXPECT_EQ, folly::getKeepAliveToken(), i, folly::Baton< MayBlock, Atom >::post(), folly::Baton< MayBlock, Atom >::reset(), values(), and folly::Baton< MayBlock, Atom >::wait().
| TEST | ( | SerialExecutor | , |
| RecursiveAdd | |||
| ) |
Definition at line 144 of file SerialExecutorTest.cpp.
References RecursiveAddTest().
| TEST | ( | SerialExecutor | , |
| RecursiveAddInline | |||
| ) |
Definition at line 147 of file SerialExecutorTest.cpp.
References RecursiveAddTest().
| TEST | ( | SerialExecutor | , |
| ExecutionThrows | |||
| ) |
Definition at line 151 of file SerialExecutorTest.cpp.
References folly::pushmi::executor.