proxygen
TestTimeoutDelayed Class Reference
Inheritance diagram for TestTimeoutDelayed:
TestTimeout TestTimeout folly::AsyncTimeout proxygen::AsyncTimeoutSet::Callback folly::AsyncTimeout proxygen::AsyncTimeoutSet::Callback

Protected Member Functions

std::chrono::steady_clock::time_point getCurTime () override
 
std::chrono::steady_clock::time_point getCurTime () override
 

Additional Inherited Members

- Public Types inherited from folly::AsyncTimeout
typedef TimeoutManager::InternalEnum InternalEnum
 
- Public Member Functions inherited from TestTimeout
 TestTimeout (EventBase *eventBase)
 
void timeoutExpired () noexceptoverride
 
 TestTimeout ()
 
 TestTimeout (HHWheelTimer *t, milliseconds timeout)
 
void timeoutExpired () noexceptoverride
 
void callbackCanceled () noexceptoverride
 
 TestTimeout ()
 
 TestTimeout (HHWheelTimer *t, milliseconds timeout)
 
void timeoutExpired () noexceptoverride
 
void callbackCanceled () noexceptoverride
 
template<typename... Args>
 TestTimeout (Args &&...args)
 
 TestTimeout ()
 
void addTimeout (AsyncTimeoutSet *set)
 
template<typename... Args>
void addTimeout (AsyncTimeoutSet *set, Args &&...args)
 
void timeoutExpired () noexceptoverride
 
void _scheduleNext ()
 
- Public Member Functions inherited from proxygen::AsyncTimeoutSet::Callback
 Callback ()
 
virtual ~Callback ()
 
void cancelTimeout ()
 
bool isScheduled () const
 
- Public Member Functions inherited from folly::AsyncTimeout
 AsyncTimeout (TimeoutManager *timeoutManager)
 
 AsyncTimeout (EventBase *eventBase)
 
 AsyncTimeout (TimeoutManager *timeoutManager, InternalEnum internal)
 
 AsyncTimeout (EventBase *eventBase, InternalEnum internal)
 
 AsyncTimeout ()
 
virtual ~AsyncTimeout ()
 
bool scheduleTimeout (uint32_t milliseconds)
 
bool scheduleTimeout (TimeoutManager::timeout_type timeout)
 
void cancelTimeout ()
 
bool isScheduled () const
 
void attachTimeoutManager (TimeoutManager *timeoutManager, InternalEnum internal=InternalEnum::NORMAL)
 
void attachEventBase (EventBase *eventBase, InternalEnum internal=InternalEnum::NORMAL)
 
void detachTimeoutManager ()
 
void detachEventBase ()
 
const TimeoutManagergetTimeoutManager ()
 
struct event * getEvent ()
 
- Static Public Member Functions inherited from TestTimeout
static void setTimeoutClock (MockTimeoutClock &clock)
 
- Static Public Member Functions inherited from folly::AsyncTimeout
template<typename TCallback >
static std::unique_ptr< AsyncTimeoutmake (TimeoutManager &manager, TCallback &&callback)
 
template<typename TCallback >
static std::unique_ptr< AsyncTimeoutschedule (TimeoutManager::timeout_type timeout, TimeoutManager &manager, TCallback &&callback)
 
- Public Attributes inherited from TestTimeout
TimePoint timestamp
 
std::deque< TimePointtimestamps
 
std::deque< TimePointcanceledTimestamps
 
std::function< void()> fn
 
std::deque< milliseconds > timestamps
 

Detailed Description

Definition at line 57 of file HHWheelTimerSlowTests.cpp.

Member Function Documentation

std::chrono::steady_clock::time_point TestTimeoutDelayed::getCurTime ( )
inlineoverrideprotected

Definition at line 56 of file HHWheelTimerTest.cpp.

References now().

56  {
57  return std::chrono::steady_clock::now() - milliseconds(5);
58  }
std::chrono::steady_clock::time_point now()
std::chrono::steady_clock::time_point TestTimeoutDelayed::getCurTime ( )
inlineoverrideprotected

Definition at line 59 of file HHWheelTimerSlowTests.cpp.

References now().

59  {
60  return std::chrono::steady_clock::now() - milliseconds(5);
61  }
std::chrono::steady_clock::time_point now()

The documentation for this class was generated from the following files: