proxygen
MockHandshakeHelperCallback< UniquePtrTranslationPolicy > Class Template Reference

#include <AcceptorHelperMocks.h>

Inheritance diagram for MockHandshakeHelperCallback< UniquePtrTranslationPolicy >:
wangle::AcceptorHandshakeHelper::Callback

Public Member Functions

 MOCK_METHOD3 (connectionError_, void(folly::AsyncTransportWrapper *, folly::exception_wrapper, folly::Optional< wangle::SSLErrorEnum >))
 
void connectionError (folly::AsyncTransportWrapper *transport, folly::exception_wrapper ex, folly::Optional< wangle::SSLErrorEnum > sslErr) noexceptoverride
 
void connectionReady (folly::AsyncTransportWrapper::UniquePtr transport, std::string nextProtocol, SecureTransportType secureTransportType, folly::Optional< wangle::SSLErrorEnum > sslErr) noexceptoverride
 
- Public Member Functions inherited from wangle::AcceptorHandshakeHelper::Callback
virtual ~Callback ()=default
 
virtual void connectionReady (folly::AsyncTransportWrapper::UniquePtr transport, std::string nextProtocol, SecureTransportType secureTransportType, folly::Optional< SSLErrorEnum > sslErr) noexcept=0
 

Detailed Description

template<template< class > class UniquePtrTranslationPolicy = UseSharedPtrPolicy>
class MockHandshakeHelperCallback< UniquePtrTranslationPolicy >

Definition at line 32 of file AcceptorHelperMocks.h.

Member Function Documentation

template<template< class > class UniquePtrTranslationPolicy = UseSharedPtrPolicy>
void MockHandshakeHelperCallback< UniquePtrTranslationPolicy >::connectionError ( folly::AsyncTransportWrapper transport,
folly::exception_wrapper  ex,
folly::Optional< wangle::SSLErrorEnum sslErr 
)
inlineoverridevirtualnoexcept

Called if an error was encountered while performing handshake.

If sslErr is set, Acceptor::updateSSLStats will be called.

Implements wangle::AcceptorHandshakeHelper::Callback.

Definition at line 43 of file AcceptorHelperMocks.h.

46  {
47  connectionError_(transport, ex, sslErr);
48  }
template<template< class > class UniquePtrTranslationPolicy = UseSharedPtrPolicy>
void MockHandshakeHelperCallback< UniquePtrTranslationPolicy >::connectionReady ( folly::AsyncTransportWrapper::UniquePtr  transport,
std::string  nextProtocol,
SecureTransportType  secureTransportType,
folly::Optional< wangle::SSLErrorEnum sslErr 
)
inlineoverridenoexcept

Definition at line 50 of file AcceptorHelperMocks.h.

54  {
55  MockHandshakeHelperCallback::dispatchConnectionReady(
56  std::move(transport),
57  std::move(nextProtocol),
58  secureTransportType,
59  std::move(sslErr));
60  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
template<template< class > class UniquePtrTranslationPolicy = UseSharedPtrPolicy>
MockHandshakeHelperCallback< UniquePtrTranslationPolicy >::MOCK_METHOD3 ( connectionError_  ,
void(folly::AsyncTransportWrapper *, folly::exception_wrapper, folly::Optional< wangle::SSLErrorEnum >)   
)

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