proxygen
|
#include <folly/io/async/HHWheelTimer.h>
#include <folly/io/async/EventBase.h>
#include <folly/io/async/test/UndelayedDestruction.h>
#include <folly/io/async/test/Util.h>
#include <folly/portability/GTest.h>
Go to the source code of this file.
Classes | |
class | TestTimeout |
class | TestTimeoutDelayed |
struct | HHWheelTimerTest |
Typedefs | |
typedef UndelayedDestruction< HHWheelTimer > | StackWheelTimer |
Functions | |
TEST_F (HHWheelTimerTest, FireOnce) | |
TEST_F (HHWheelTimerTest, TestSchedulingWithinCallback) | |
TEST_F (HHWheelTimerTest, TestSetDefaultTimeout) | |
TEST_F (HHWheelTimerTest, CancelTimeout) | |
TEST_F (HHWheelTimerTest, DestroyTimeoutSet) | |
TEST_F (HHWheelTimerTest, SlowFast) | |
TEST_F (HHWheelTimerTest, ReschedTest) | |
TEST_F (HHWheelTimerTest, DeleteWheelInTimeout) | |
TEST_F (HHWheelTimerTest, DefaultTimeout) | |
TEST_F (HHWheelTimerTest, lambda) | |
TEST_F (HHWheelTimerTest, lambdaThrows) | |
TEST_F (HHWheelTimerTest, cancelAll) | |
TEST_F (HHWheelTimerTest, IntrusivePtr) | |
TEST_F (HHWheelTimerTest, GetTimeRemaining) | |
Definition at line 26 of file HHWheelTimerTest.cpp.
TEST_F | ( | HHWheelTimerTest | , |
FireOnce | |||
) |
Definition at line 68 of file HHWheelTimerTest.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 | , |
TestSchedulingWithinCallback | |||
) |
Definition at line 105 of file HHWheelTimerTest.cpp.
References ASSERT_EQ, folly::HHWheelTimer::count(), folly::AsyncTimeout::detachEventBase(), TestTimeout::fn, folly::HHWheelTimer::scheduleTimeout(), folly::pushmi::detail::t, and TestTimeout::timestamps.
TEST_F | ( | HHWheelTimerTest | , |
TestSetDefaultTimeout | |||
) |
Definition at line 129 of file HHWheelTimerTest.cpp.
References ASSERT_EQ, folly::HHWheelTimer::getDefaultTimeout(), folly::HHWheelTimer::setDefaultTimeout(), and folly::pushmi::detail::t.
TEST_F | ( | HHWheelTimerTest | , |
CancelTimeout | |||
) |
Definition at line 141 of file HHWheelTimerTest.cpp.
References ASSERT_EQ, proxygen::AsyncTimeoutSet::Callback::cancelTimeout(), folly::test::end(), TestTimeout::fn, folly::HHWheelTimer::scheduleTimeout(), start, folly::pushmi::detail::t, T_CHECK_TIMEOUT, and TestTimeout::timestamps.
TEST_F | ( | HHWheelTimerTest | , |
DestroyTimeoutSet | |||
) |
Definition at line 222 of file HHWheelTimerTest.cpp.
References ASSERT_EQ, folly::test::end(), TestTimeout::fn, folly::HHWheelTimer::newTimer(), start, folly::pushmi::detail::t, and T_CHECK_TIMEOUT.
TEST_F | ( | HHWheelTimerTest | , |
SlowFast | |||
) |
Definition at line 264 of file HHWheelTimerTest.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 | , |
ReschedTest | |||
) |
Definition at line 290 of file HHWheelTimerTest.cpp.
References ASSERT_EQ, folly::HHWheelTimer::count(), folly::test::end(), TestTimeout::fn, folly::TimePoint::reset(), folly::HHWheelTimer::scheduleTimeout(), start, folly::pushmi::detail::t, T_CHECK_TIMEOUT, and TestTimeout::timestamps.
TEST_F | ( | HHWheelTimerTest | , |
DeleteWheelInTimeout | |||
) |
Definition at line 320 of file HHWheelTimerTest.cpp.
References ASSERT_EQ, proxygen::AsyncTimeoutSet::Callback::cancelTimeout(), folly::test::end(), TestTimeout::fn, folly::HHWheelTimer::newTimer(), start, folly::pushmi::detail::t, T_CHECK_TIMEOUT, and TestTimeout::timestamps.
TEST_F | ( | HHWheelTimerTest | , |
DefaultTimeout | |||
) |
Definition at line 350 of file HHWheelTimerTest.cpp.
References ASSERT_EQ, folly::HHWheelTimer::count(), folly::test::end(), folly::HHWheelTimer::getDefaultTimeout(), folly::TimeoutManager::NORMAL, folly::HHWheelTimer::scheduleTimeout(), start, folly::pushmi::detail::t, T_CHECK_TIMEOUT, and TestTimeout::timestamps.
TEST_F | ( | HHWheelTimerTest | , |
lambda | |||
) |
Definition at line 383 of file HHWheelTimerTest.cpp.
References count, EXPECT_EQ, folly::HHWheelTimer::scheduleTimeoutFn(), and folly::pushmi::detail::t.
TEST_F | ( | HHWheelTimerTest | , |
lambdaThrows | |||
) |
Definition at line 393 of file HHWheelTimerTest.cpp.
References folly::HHWheelTimer::scheduleTimeoutFn(), and folly::pushmi::detail::t.
TEST_F | ( | HHWheelTimerTest | , |
cancelAll | |||
) |
Definition at line 400 of file HHWheelTimerTest.cpp.
References folly::HHWheelTimer::cancelAll(), TestTimeout::canceledTimestamps, EXPECT_EQ, folly::HHWheelTimer::scheduleTimeout(), and folly::pushmi::detail::t.
TEST_F | ( | HHWheelTimerTest | , |
IntrusivePtr | |||
) |
Definition at line 408 of file HHWheelTimerTest.cpp.
References ASSERT_EQ, folly::test::end(), folly::HHWheelTimer::newTimer(), s, start, folly::pushmi::detail::t, T_CHECK_TIMEOUT, and TestTimeout::timestamps.
TEST_F | ( | HHWheelTimerTest | , |
GetTimeRemaining | |||
) |
Definition at line 446 of file HHWheelTimerTest.cpp.
References ASSERT_EQ, ASSERT_LE, folly::HHWheelTimer::count(), folly::test::end(), folly::HHWheelTimer::scheduleTimeout(), start, folly::pushmi::detail::t, and T_CHECK_TIMEOUT.