proxygen
folly::test::MockTimeoutManager Class Reference

#include <MockTimeoutManager.h>

Inheritance diagram for folly::test::MockTimeoutManager:
folly::TimeoutManager

Public Member Functions

 MOCK_METHOD2 (attachTimeoutManager, void(folly::AsyncTimeout *, folly::TimeoutManager::InternalEnum))
 
 MOCK_METHOD1 (detachTimeoutManager, void(folly::AsyncTimeout *))
 
 MOCK_METHOD2 (scheduleTimeout, bool(folly::AsyncTimeout *, std::chrono::milliseconds))
 
 MOCK_METHOD1 (cancelTimeout, void(folly::AsyncTimeout *))
 
 MOCK_METHOD0 (bumpHandlingTime, void())
 
 MOCK_METHOD0 (isInTimeoutManagerThread, bool())
 
- Public Member Functions inherited from folly::TimeoutManager
 TimeoutManager ()
 
virtual ~TimeoutManager ()
 
virtual void attachTimeoutManager (AsyncTimeout *obj, InternalEnum internal)=0
 
virtual void detachTimeoutManager (AsyncTimeout *obj)=0
 
virtual bool scheduleTimeout (AsyncTimeout *obj, timeout_type timeout)=0
 
virtual void cancelTimeout (AsyncTimeout *obj)=0
 
virtual void bumpHandlingTime ()=0
 
virtual bool isInTimeoutManagerThread ()=0
 
void runAfterDelay (Func cob, uint32_t milliseconds, InternalEnum internal=InternalEnum::NORMAL)
 
bool tryRunAfterDelay (Func cob, uint32_t milliseconds, InternalEnum internal=InternalEnum::NORMAL)
 

Additional Inherited Members

- Public Types inherited from folly::TimeoutManager
enum  InternalEnum { InternalEnum::INTERNAL, InternalEnum::NORMAL }
 
typedef std::chrono::milliseconds timeout_type
 
using Func = folly::Function< void()>
 
- Protected Member Functions inherited from folly::TimeoutManager
void clearCobTimeouts ()
 

Detailed Description

Definition at line 26 of file MockTimeoutManager.h.

Member Function Documentation

folly::test::MockTimeoutManager::MOCK_METHOD0 ( bumpHandlingTime  ,
void()   
)
folly::test::MockTimeoutManager::MOCK_METHOD0 ( isInTimeoutManagerThread  ,
bool()   
)
folly::test::MockTimeoutManager::MOCK_METHOD1 ( detachTimeoutManager  ,
void(folly::AsyncTimeout *)   
)
folly::test::MockTimeoutManager::MOCK_METHOD1 ( cancelTimeout  ,
void(folly::AsyncTimeout *)   
)
folly::test::MockTimeoutManager::MOCK_METHOD2 ( attachTimeoutManager  ,
void(folly::AsyncTimeout *, folly::TimeoutManager::InternalEnum  
)
folly::test::MockTimeoutManager::MOCK_METHOD2 ( scheduleTimeout  ,
bool(folly::AsyncTimeout *, std::chrono::milliseconds)   
)

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