proxygen
|
#include <type_traits>
#include <chrono>
#include <folly/experimental/pushmi/flow_single_sender.h>
#include <folly/experimental/pushmi/o/submit.h>
#include <folly/experimental/pushmi/entangle.h>
#include <folly/experimental/pushmi/new_thread.h>
#include <folly/experimental/pushmi/time_source.h>
#include <folly/experimental/pushmi/trampoline.h>
#include <folly/portability/GMock.h>
#include <folly/portability/GTest.h>
Go to the source code of this file.
Classes | |
class | ImmediateFlowSingleSender |
class | ConcurrentFlowSingleSender |
Macros | |
#define | MAKE(x) make_##x |
Typedefs | |
using | NT = decltype(mi::new_thread()) |
Functions | |
TEST_F (ImmediateFlowSingleSender, EarlyCancellation) | |
TEST_F (ImmediateFlowSingleSender, LateCancellation) | |
auto | make_time (mi::time_source<> &t, NT &ex) |
TEST_F (ConcurrentFlowSingleSender, EarlySharedCancellation) | |
TEST_F (ConcurrentFlowSingleSender, LateSharedCancellation) | |
TEST_F (ConcurrentFlowSingleSender, RacingSharedCancellation) | |
TEST_F (ConcurrentFlowSingleSender, EarlyEntangledCancellation) | |
TEST_F (ConcurrentFlowSingleSender, LateEntangledCancellation) | |
TEST_F (ConcurrentFlowSingleSender, RacingEntangledCancellation) | |
Definition at line 42 of file FlowTest.cpp.
Referenced by ConcurrentFlowSingleSender::cancellation_test(), ImmediateFlowSingleSender::make_consumer(), and ImmediateFlowSingleSender::make_producer().
using NT = decltype(mi::new_thread()) |
Definition at line 124 of file FlowTest.cpp.
|
inline |
Definition at line 126 of file FlowTest.cpp.
References folly::pushmi::time_source< E, TP >::make().
TEST_F | ( | ImmediateFlowSingleSender | , |
EarlyCancellation | |||
) |
Definition at line 105 of file FlowTest.cpp.
References testing::Eq(), EXPECT_THAT, folly::pushmi::set_done, and submit.
TEST_F | ( | ImmediateFlowSingleSender | , |
LateCancellation | |||
) |
TEST_F | ( | ConcurrentFlowSingleSender | , |
EarlySharedCancellation | |||
) |
Definition at line 246 of file FlowTest.cpp.
References testing::Eq(), EXPECT_THAT, join, folly::pushmi::shared_entangle(), and stop().
TEST_F | ( | ConcurrentFlowSingleSender | , |
LateSharedCancellation | |||
) |
Definition at line 256 of file FlowTest.cpp.
References testing::Eq(), EXPECT_THAT, join, folly::pushmi::shared_entangle(), and stop().
TEST_F | ( | ConcurrentFlowSingleSender | , |
RacingSharedCancellation | |||
) |
Definition at line 267 of file FlowTest.cpp.
References ASSERT_THAT, testing::Eq(), EXPECT_THAT, join, testing::Lt(), folly::pushmi::shared_entangle(), and stop().
TEST_F | ( | ConcurrentFlowSingleSender | , |
EarlyEntangledCancellation | |||
) |
Definition at line 302 of file FlowTest.cpp.
References folly::pushmi::entangle(), testing::Eq(), EXPECT_THAT, join, and stop().
TEST_F | ( | ConcurrentFlowSingleSender | , |
LateEntangledCancellation | |||
) |
Definition at line 312 of file FlowTest.cpp.
References folly::pushmi::entangle(), testing::Eq(), EXPECT_THAT, join, and stop().
TEST_F | ( | ConcurrentFlowSingleSender | , |
RacingEntangledCancellation | |||
) |
Definition at line 323 of file FlowTest.cpp.
References ASSERT_THAT, folly::pushmi::entangle(), testing::Eq(), EXPECT_THAT, join, testing::Lt(), and stop().