proxygen
wangle::MockSSLSessionCallbacks Class Reference

#include <Mocks.h>

Inheritance diagram for wangle::MockSSLSessionCallbacks:
wangle::SSLSessionCallbacks

Public Member Functions

 MOCK_METHOD2 (setSSLSessionInternal, void(const std::string &, SSL_SESSION *))
 
 MOCK_CONST_METHOD1 (getSSLSessionInternal, SSL_SESSION *(const std::string &))
 
 MOCK_METHOD1 (removeSSLSessionInternal, bool(const std::string &))
 
SSLSessionPtr getSSLSession (const std::string &host) const noexceptoverride
 
void setSSLSession (const std::string &host, SSLSessionPtr session) noexceptoverride
 
bool removeSSLSession (const std::string &identity) noexceptoverride
 
- Public Member Functions inherited from wangle::SSLSessionCallbacks
virtual bool supportsPersistence () const noexcept
 
virtual size_t size () const
 
virtual ~SSLSessionCallbacks ()
 

Additional Inherited Members

- Static Public Member Functions inherited from wangle::SSLSessionCallbacks
static void attachCallbacksToContext (SSL_CTX *ctx, SSLSessionCallbacks *callbacks)
 
static void detachCallbacksFromContext (SSL_CTX *ctx, SSLSessionCallbacks *callbacks)
 
static SSLSessionCallbacksgetCacheFromContext (SSL_CTX *ctx)
 

Detailed Description

Definition at line 23 of file Mocks.h.

Member Function Documentation

SSLSessionPtr wangle::MockSSLSessionCallbacks::getSSLSession ( const std::string host) const
inlineoverridevirtualnoexcept

Implements wangle::SSLSessionCallbacks.

Definition at line 31 of file Mocks.h.

32  {
33  return SSLSessionPtr(getSSLSessionInternal(host));
34  }
std::unique_ptr< SSL_SESSION, SessionDestructor > SSLSessionPtr
Definition: SSLSession.h:32
wangle::MockSSLSessionCallbacks::MOCK_CONST_METHOD1 ( getSSLSessionInternal  ,
SSL_SESSION *  const std::string & 
)
wangle::MockSSLSessionCallbacks::MOCK_METHOD1 ( removeSSLSessionInternal  ,
bool(const std::string &)   
)
wangle::MockSSLSessionCallbacks::MOCK_METHOD2 ( setSSLSessionInternal  ,
void(const std::string &, SSL_SESSION *)   
)
bool wangle::MockSSLSessionCallbacks::removeSSLSession ( const std::string identity)
inlineoverridevirtualnoexcept

Implements wangle::SSLSessionCallbacks.

Definition at line 42 of file Mocks.h.

42  {
43  return removeSSLSessionInternal(identity);
44  }
void wangle::MockSSLSessionCallbacks::setSSLSession ( const std::string host,
SSLSessionPtr  session 
)
inlineoverridevirtualnoexcept

Implements wangle::SSLSessionCallbacks.

Definition at line 36 of file Mocks.h.

38  {
39  setSSLSessionInternal(host, session.release());
40  }

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