proxygen
fizz::client::test::MockConnectCallback Class Reference
Inheritance diagram for fizz::client::test::MockConnectCallback:
folly::AsyncSocket::ConnectCallback

Public Member Functions

 MOCK_METHOD0 (_connectSuccess, void())
 
 MOCK_METHOD1 (_connectErr, void(const AsyncSocketException &))
 
void connectSuccess () noexceptoverride
 
void connectErr (const AsyncSocketException &ex) noexceptoverride
 
- Public Member Functions inherited from folly::AsyncSocket::ConnectCallback
virtual ~ConnectCallback ()=default
 

Detailed Description

Definition at line 38 of file AsyncFizzClientTest.cpp.

Member Function Documentation

void fizz::client::test::MockConnectCallback::connectErr ( const AsyncSocketException ex)
inlineoverridevirtualnoexcept

connectErr() will be invoked if the connection attempt fails.

Parameters
exAn exception describing the error that occurred.

Implements folly::AsyncSocket::ConnectCallback.

Definition at line 47 of file AsyncFizzClientTest.cpp.

47  {
48  _connectErr(ex);
49  }
void fizz::client::test::MockConnectCallback::connectSuccess ( )
inlineoverridevirtualnoexcept

connectSuccess() will be invoked when the connection has been successfully established.

Implements folly::AsyncSocket::ConnectCallback.

Definition at line 43 of file AsyncFizzClientTest.cpp.

43  {
44  _connectSuccess();
45  }
fizz::client::test::MockConnectCallback::MOCK_METHOD0 ( _connectSuccess  ,
void()   
)
fizz::client::test::MockConnectCallback::MOCK_METHOD1 ( _connectErr  ,
void(const AsyncSocketException &)   
)

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