|
proxygen
|
#include <type_traits>#include <chrono>#include <folly/experimental/pushmi/flow_single_sender.h>#include <folly/experimental/pushmi/o/empty.h>#include <folly/experimental/pushmi/o/extension_operators.h>#include <folly/experimental/pushmi/o/just.h>#include <folly/experimental/pushmi/o/on.h>#include <folly/experimental/pushmi/o/submit.h>#include <folly/experimental/pushmi/o/tap.h>#include <folly/experimental/pushmi/o/transform.h>#include <folly/experimental/pushmi/o/via.h>#include <folly/experimental/pushmi/new_thread.h>#include <folly/experimental/pushmi/strand.h>#include <folly/experimental/pushmi/time_source.h>#include <folly/Conv.h>#include <folly/portability/GMock.h>#include <folly/portability/GTest.h>Go to the source code of this file.
Classes | |
| struct | countdownsingle |
| class | NewthreadExecutor |
Typedefs | |
| using | NT = decltype(mi::new_thread()) |
Functions | |
| auto | make_time (mi::time_source<> &t, NT &ex) |
| TEST_F (NewthreadExecutor, BlockingSubmitNow) | |
| TEST_F (NewthreadExecutor, BlockingGetNow) | |
| TEST_F (NewthreadExecutor, SubmissionsAreOrderedInTime) | |
| TEST_F (NewthreadExecutor, NowIsCalled) | |
| TEST_F (NewthreadExecutor, BlockingSubmit) | |
| TEST_F (NewthreadExecutor, BlockingGet) | |
| TEST_F (NewthreadExecutor, VirtualDerecursion) | |
| TEST_F (NewthreadExecutor, StaticDerecursion) | |
| TEST_F (NewthreadExecutor, UsedWithOn) | |
| TEST_F (NewthreadExecutor, UsedWithVia) | |
| using NT = decltype(mi::new_thread()) |
Definition at line 58 of file NewThreadTest.cpp.
|
inline |
Definition at line 60 of file NewThreadTest.cpp.
References folly::pushmi::time_source< E, TP >::make().
| TEST_F | ( | NewthreadExecutor | , |
| BlockingSubmitNow | |||
| ) |
Definition at line 78 of file NewThreadTest.cpp.
References folly::pushmi::operators::blocking_submit, testing::Eq(), EXPECT_THAT, testing::Lt(), folly::pushmi::__adl::noexcept(), now(), start, and folly::pushmi::operators::transform.
| TEST_F | ( | NewthreadExecutor | , |
| BlockingGetNow | |||
| ) |
Definition at line 99 of file NewThreadTest.cpp.
References EXPECT_THAT, testing::Lt(), now(), start, and folly::pushmi::operators::transform.
| TEST_F | ( | NewthreadExecutor | , |
| SubmissionsAreOrderedInTime | |||
| ) |
Definition at line 111 of file NewThreadTest.cpp.
References testing::ElementsAre(), EXPECT_THAT, now(), folly::pushmi::on_value(), submit, folly::pushmi::operators::submit_after, folly::pushmi::operators::submit_at, folly::detail::distributed_mutex::time(), folly::times(), and folly::fibers::yield().
| TEST_F | ( | NewthreadExecutor | , |
| NowIsCalled | |||
| ) |
Definition at line 135 of file NewThreadTest.cpp.
References folly::pushmi::operators::blocking_submit, testing::Eq(), EXPECT_THAT, and now().
| TEST_F | ( | NewthreadExecutor | , |
| BlockingSubmit | |||
| ) |
Definition at line 146 of file NewThreadTest.cpp.
References folly::pushmi::operators::blocking_submit, testing::Eq(), EXPECT_THAT, folly::pushmi::__adl::noexcept(), and folly::pushmi::operators::transform.
| TEST_F | ( | NewthreadExecutor | , |
| BlockingGet | |||
| ) |
Definition at line 158 of file NewThreadTest.cpp.
References testing::Eq(), EXPECT_THAT, and folly::pushmi::operators::transform.
| TEST_F | ( | NewthreadExecutor | , |
| VirtualDerecursion | |||
| ) |
| TEST_F | ( | NewthreadExecutor | , |
| StaticDerecursion | |||
| ) |
Definition at line 178 of file NewThreadTest.cpp.
References folly::pushmi::operators::blocking_submit, testing::Eq(), EXPECT_THAT, and single.
| TEST_F | ( | NewthreadExecutor | , |
| UsedWithOn | |||
| ) |
Definition at line 187 of file NewThreadTest.cpp.
References folly::pushmi::operators::blocking_submit, testing::ElementsAre(), EXPECT_THAT, folly::pushmi::make_single_sender, max, min, folly::pushmi::operators::on, folly::pushmi::on_value(), folly::pushmi::set_done, folly::pushmi::set_value, and values().
| TEST_F | ( | NewthreadExecutor | , |
| UsedWithVia | |||
| ) |
Definition at line 205 of file NewThreadTest.cpp.
References folly::pushmi::operators::blocking_submit, testing::ElementsAre(), EXPECT_THAT, folly::pushmi::make_single_sender, max, min, folly::pushmi::on_value(), folly::pushmi::set_done, folly::pushmi::set_value, folly::pushmi::strands(), values(), and folly::pushmi::operators::via.