proxygen
PeekingAcceptorHandshakeHelperTest Class Reference
Inheritance diagram for PeekingAcceptorHandshakeHelperTest:
testing::Test

Protected Member Functions

void SetUp () override
 
void TearDown () override
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
 Test ()
 
 Test ()
 

Protected Attributes

PeekingAcceptorHandshakeHelperhelper_
 
MockAsyncSSLSocketsslSock_
 
AsyncSSLSocket::UniquePtr sockPtr_
 
EventBase base_
 
MockPeekingCallback mockPeekCallback1_ {2}
 
MockPeekingCallback mockPeekCallback2_ {1}
 
std::vector< PeekingCallbackPtrpeekCallbacks_
 
MockHandshakeHelper< UseSharedPtrPolicy > * innerHelper_
 
AcceptorHandshakeHelper::UniquePtr helperPtr_
 
StrictMock< MockHandshakeHelperCallback<> > callback_
 
TransportInfo tinfo_
 
SocketAddress sa_
 

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
virtual ~Test ()
 
virtual ~Test ()
 
- Static Public Member Functions inherited from testing::Test
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 

Detailed Description

Definition at line 53 of file PeekingAcceptorHandshakeHelperTest.cpp.

Member Function Documentation

void PeekingAcceptorHandshakeHelperTest::SetUp ( )
inlineoverrideprotectedvirtual

Reimplemented from testing::Test.

Definition at line 55 of file PeekingAcceptorHandshakeHelperTest.cpp.

References base_, and now().

55  {
58  &base_,
59  true /* defer security negotiation */);
61 
64 
66  sa_,
68  tinfo_,
70  2);
71 
74  }
std::chrono::steady_clock::time_point now()
MockHandshakeHelper< UseSharedPtrPolicy > * innerHelper_
std::unique_ptr< AsyncSSLSocket, Destructor > UniquePtr
std::shared_ptr< SSLContext > SSLContextPtr
Definition: SSLContext.h:628
std::unique_ptr< AcceptorHandshakeHelper, folly::DelayedDestruction::Destructor > UniquePtr
void PeekingAcceptorHandshakeHelperTest::TearDown ( )
inlineoverrideprotectedvirtual

Reimplemented from testing::Test.

Definition at line 76 of file PeekingAcceptorHandshakeHelperTest.cpp.

76  {
77  // Normally this would be destoryed by the AcceptorHandshakeManager.
78  helper_->destroy();
79  }

Member Data Documentation

EventBase PeekingAcceptorHandshakeHelperTest::base_
protected

Definition at line 84 of file PeekingAcceptorHandshakeHelperTest.cpp.

StrictMock<MockHandshakeHelperCallback<> > PeekingAcceptorHandshakeHelperTest::callback_
protected

Definition at line 90 of file PeekingAcceptorHandshakeHelperTest.cpp.

PeekingAcceptorHandshakeHelper* PeekingAcceptorHandshakeHelperTest::helper_
protected

Definition at line 81 of file PeekingAcceptorHandshakeHelperTest.cpp.

AcceptorHandshakeHelper::UniquePtr PeekingAcceptorHandshakeHelperTest::helperPtr_
protected

Definition at line 89 of file PeekingAcceptorHandshakeHelperTest.cpp.

MockHandshakeHelper<UseSharedPtrPolicy>* PeekingAcceptorHandshakeHelperTest::innerHelper_
protected

Definition at line 88 of file PeekingAcceptorHandshakeHelperTest.cpp.

MockPeekingCallback PeekingAcceptorHandshakeHelperTest::mockPeekCallback1_ {2}
protected

Definition at line 85 of file PeekingAcceptorHandshakeHelperTest.cpp.

MockPeekingCallback PeekingAcceptorHandshakeHelperTest::mockPeekCallback2_ {1}
protected

Definition at line 86 of file PeekingAcceptorHandshakeHelperTest.cpp.

std::vector<PeekingCallbackPtr> PeekingAcceptorHandshakeHelperTest::peekCallbacks_
protected

Definition at line 87 of file PeekingAcceptorHandshakeHelperTest.cpp.

SocketAddress PeekingAcceptorHandshakeHelperTest::sa_
protected

Definition at line 92 of file PeekingAcceptorHandshakeHelperTest.cpp.

AsyncSSLSocket::UniquePtr PeekingAcceptorHandshakeHelperTest::sockPtr_
protected

Definition at line 83 of file PeekingAcceptorHandshakeHelperTest.cpp.

MockAsyncSSLSocket* PeekingAcceptorHandshakeHelperTest::sslSock_
protected

Definition at line 82 of file PeekingAcceptorHandshakeHelperTest.cpp.

TransportInfo PeekingAcceptorHandshakeHelperTest::tinfo_
protected

Definition at line 91 of file PeekingAcceptorHandshakeHelperTest.cpp.


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