proxygen
MockUDPReadCallback Class Reference
Inheritance diagram for MockUDPReadCallback:

Public Member Functions

 ~MockUDPReadCallback () override=default
 
 MOCK_METHOD2 (getReadBuffer_, void(void **, size_t *))
 
void getReadBuffer (void **buf, size_t *len) noexceptoverride
 
 MOCK_METHOD3 (onDataAvailable_, void(const folly::SocketAddress &, size_t, bool))
 
void onDataAvailable (const folly::SocketAddress &client, size_t len, bool truncated) noexceptoverride
 
 MOCK_METHOD1 (onReadError_, void(const folly::AsyncSocketException &))
 
void onReadError (const folly::AsyncSocketException &ex) noexceptoverride
 
 MOCK_METHOD0 (onReadClosed_, void())
 
void onReadClosed () noexceptoverride
 

Detailed Description

Definition at line 482 of file AsyncUDPSocketTest.cpp.

Constructor & Destructor Documentation

MockUDPReadCallback::~MockUDPReadCallback ( )
overridedefault

Member Function Documentation

void MockUDPReadCallback::getReadBuffer ( void **  buf,
size_t *  len 
)
inlineoverridenoexcept

Definition at line 487 of file AsyncUDPSocketTest.cpp.

References MOCK_METHOD3.

487  {
488  getReadBuffer_(buf, len);
489  }
MockUDPReadCallback::MOCK_METHOD0 ( onReadClosed_  ,
void()   
)
MockUDPReadCallback::MOCK_METHOD1 ( onReadError_  ,
void(const folly::AsyncSocketException &)   
)
MockUDPReadCallback::MOCK_METHOD2 ( getReadBuffer_  ,
void(void **, size_t *)   
)
MockUDPReadCallback::MOCK_METHOD3 ( onDataAvailable_  ,
void(const folly::SocketAddress &, size_t, bool)   
)
void MockUDPReadCallback::onDataAvailable ( const folly::SocketAddress client,
size_t  len,
bool  truncated 
)
inlineoverridenoexcept

Definition at line 494 of file AsyncUDPSocketTest.cpp.

References MOCK_METHOD1.

497  {
498  onDataAvailable_(client, len, truncated);
499  }
void MockUDPReadCallback::onReadClosed ( )
inlineoverridenoexcept

Definition at line 507 of file AsyncUDPSocketTest.cpp.

507  {
508  onReadClosed_();
509  }
void MockUDPReadCallback::onReadError ( const folly::AsyncSocketException ex)
inlineoverridenoexcept

Definition at line 502 of file AsyncUDPSocketTest.cpp.

References MOCK_METHOD0.

502  {
503  onReadError_(ex);
504  }

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