proxygen
fizz::server::test::MockHandshakeCallbackT< SM > Class Template Reference

#include <Mocks.h>

Inheritance diagram for fizz::server::test::MockHandshakeCallbackT< SM >:
fizz::server::AsyncFizzServerT< SM >::HandshakeCallback

Public Member Functions

 MOCK_METHOD0 (_fizzHandshakeSuccess, void())
 
void fizzHandshakeSuccess (AsyncFizzServerT< SM > *) noexceptoverride
 
 MOCK_METHOD1 (_fizzHandshakeError, void(folly::exception_wrapper))
 
void fizzHandshakeError (AsyncFizzServerT< SM > *, folly::exception_wrapper ew) noexceptoverride
 
 MOCK_METHOD1 (_fizzHandshakeAttemptFallback, void(std::unique_ptr< folly::IOBuf > &))
 
void fizzHandshakeAttemptFallback (std::unique_ptr< folly::IOBuf > clientHello) override
 
- Public Member Functions inherited from fizz::server::AsyncFizzServerT< SM >::HandshakeCallback
virtual ~HandshakeCallback ()=default
 

Detailed Description

template<typename SM>
class fizz::server::test::MockHandshakeCallbackT< SM >

Definition at line 136 of file Mocks.h.

Member Function Documentation

template<typename SM>
void fizz::server::test::MockHandshakeCallbackT< SM >::fizzHandshakeAttemptFallback ( std::unique_ptr< folly::IOBuf clientHello)
inlineoverridevirtual

Implements fizz::server::AsyncFizzServerT< SM >::HandshakeCallback.

Definition at line 153 of file Mocks.h.

154  {
155  return _fizzHandshakeAttemptFallback(clientHello);
156  }
template<typename SM>
void fizz::server::test::MockHandshakeCallbackT< SM >::fizzHandshakeError ( AsyncFizzServerT< SM > *  ,
folly::exception_wrapper  ew 
)
inlineoverridevirtualnoexcept

Implements fizz::server::AsyncFizzServerT< SM >::HandshakeCallback.

Definition at line 144 of file Mocks.h.

146  {
147  _fizzHandshakeError(std::move(ew));
148  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
template<typename SM>
void fizz::server::test::MockHandshakeCallbackT< SM >::fizzHandshakeSuccess ( AsyncFizzServerT< SM > *  )
inlineoverridevirtualnoexcept

Implements fizz::server::AsyncFizzServerT< SM >::HandshakeCallback.

Definition at line 139 of file Mocks.h.

139  {
140  _fizzHandshakeSuccess();
141  }
template<typename SM>
fizz::server::test::MockHandshakeCallbackT< SM >::MOCK_METHOD0 ( _fizzHandshakeSuccess  ,
void()   
)
template<typename SM>
fizz::server::test::MockHandshakeCallbackT< SM >::MOCK_METHOD1 ( _fizzHandshakeError  ,
void(folly::exception_wrapper  
)
template<typename SM>
fizz::server::test::MockHandshakeCallbackT< SM >::MOCK_METHOD1 ( _fizzHandshakeAttemptFallback  ,
void(std::unique_ptr< folly::IOBuf > &)   
)

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