proxygen
MockSocketPeekerCallback Class Reference
Inheritance diagram for MockSocketPeekerCallback:
wangle::SocketPeeker::Callback

Public Member Functions

 ~MockSocketPeekerCallback () override=default
 
 MOCK_METHOD1 (peekSuccess_, void(typename std::vector< uint8_t >))
 
void peekSuccess (std::vector< uint8_t > peekBytes) noexceptoverride
 
 MOCK_METHOD1 (peekError_, void(const folly::AsyncSocketException &))
 
void peekError (const folly::AsyncSocketException &ex) noexceptoverride
 
- Public Member Functions inherited from wangle::SocketPeeker::Callback
virtual ~Callback ()=default
 

Detailed Description

Definition at line 29 of file SocketPeekerTest.cpp.

Constructor & Destructor Documentation

MockSocketPeekerCallback::~MockSocketPeekerCallback ( )
overridedefault

Member Function Documentation

MockSocketPeekerCallback::MOCK_METHOD1 ( peekSuccess_  ,
void(typename std::vector< uint8_t >)   
)
MockSocketPeekerCallback::MOCK_METHOD1 ( peekError_  ,
void(const folly::AsyncSocketException &)   
)
void MockSocketPeekerCallback::peekError ( const folly::AsyncSocketException ex)
inlineoverridevirtualnoexcept

Implements wangle::SocketPeeker::Callback.

Definition at line 39 of file SocketPeekerTest.cpp.

39  {
40  peekError_(ex);
41  }
void MockSocketPeekerCallback::peekSuccess ( std::vector< uint8_t peekBytes)
inlineoverridevirtualnoexcept

Implements wangle::SocketPeeker::Callback.

Definition at line 34 of file SocketPeekerTest.cpp.

References MOCK_METHOD1.

34  {
35  peekSuccess_(peekBytes);
36  }

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