proxygen
|
#include <folly/Random.h>
#include <folly/io/async/EventBase.h>
#include <folly/io/async/HHWheelTimer.h>
#include <folly/io/async/test/UndelayedDestruction.h>
#include <folly/io/async/test/Util.h>
#include <folly/portability/GTest.h>
#include <thread>
#include <vector>
Go to the source code of this file.
Classes | |
class | TestTimeout |
class | TestTimeoutDelayed |
struct | HHWheelTimerTest |
Typedefs | |
typedef UndelayedDestruction< HHWheelTimer > | StackWheelTimer |
Functions | |
TEST_F (HHWheelTimerTest, Level2) | |
TEST_F (HHWheelTimerTest, AtMostEveryN) | |
TEST_F (HHWheelTimerTest, SlowLoop) | |
TEST_F (HHWheelTimerTest, Level1) | |
TEST_F (HHWheelTimerTest, Stress) | |
Definition at line 29 of file HHWheelTimerSlowTests.cpp.
TEST_F | ( | HHWheelTimerTest | , |
Level2 | |||
) |
Definition at line 69 of file HHWheelTimerSlowTests.cpp.
References ASSERT_EQ, folly::HHWheelTimer::count(), folly::test::end(), folly::HHWheelTimer::scheduleTimeout(), start, folly::pushmi::detail::t, T_CHECK_TIMEOUT, and TestTimeout::timestamps.
TEST_F | ( | HHWheelTimerTest | , |
AtMostEveryN | |||
) |
Definition at line 106 of file HHWheelTimerSlowTests.cpp.
References ASSERT_EQ, count, folly::test::end(), TestTimeout::fn, folly::TimePoint::getTime(), folly::TimePoint::getTimeEnd(), folly::TimePoint::getTimeStart(), folly::TimePoint::getTimeWaiting(), scheduler, folly::HHWheelTimer::scheduleTimeout(), start, folly::pushmi::detail::t, T_CHECK_TIMEOUT, uint32_t, and folly::WARNING.
TEST_F | ( | HHWheelTimerTest | , |
SlowLoop | |||
) |
Definition at line 196 of file HHWheelTimerSlowTests.cpp.
References ASSERT_EQ, folly::HHWheelTimer::count(), folly::test::end(), folly::HHWheelTimer::scheduleTimeout(), start, folly::pushmi::detail::t, T_CHECK_TIMEOUT, and TestTimeout::timestamps.
TEST_F | ( | HHWheelTimerTest | , |
Level1 | |||
) |
Definition at line 247 of file HHWheelTimerSlowTests.cpp.
References ASSERT_EQ, folly::HHWheelTimer::count(), folly::test::end(), folly::HHWheelTimer::scheduleTimeout(), start, folly::pushmi::detail::t, T_CHECK_TIMEOUT, and TestTimeout::timestamps.
TEST_F | ( | HHWheelTimerTest | , |
Stress | |||
) |
Definition at line 275 of file HHWheelTimerSlowTests.cpp.
References ADD_FAILURE, proxygen::AsyncTimeoutSet::Callback::cancelTimeout(), EXPECT_EQ, TestTimeout::fn, i, folly::INFO, folly::Random::rand32(), folly::HHWheelTimer::scheduleTimeout(), folly::pushmi::detail::t, and folly::detail::timeout.