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

Public Member Functions

 ThreadSafeSSLSessionCacheTest ()
 
void SetUp () override
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
virtual ~Test ()
 
virtual ~Test ()
 

Public Attributes

std::vector< std::pair< SSL_SESSION *, size_t > > sessions_
 
std::unique_ptr< ThreadSafeSSLSessionCachecache_
 

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
 
- 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)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void TearDown ()
 

Detailed Description

Definition at line 56 of file ThreadSafeSSLSessionCacheTest.cpp.

Constructor & Destructor Documentation

ThreadSafeSSLSessionCacheTest::ThreadSafeSSLSessionCacheTest ( )
inline

Definition at line 58 of file ThreadSafeSSLSessionCacheTest.cpp.

58 {}

Member Function Documentation

void ThreadSafeSSLSessionCacheTest::SetUp ( )
inlineoverridevirtual

Reimplemented from testing::Test.

Definition at line 60 of file ThreadSafeSSLSessionCacheTest.cpp.

References wangle::getSessions().

60  {
61  for (auto& it : getSessions()) {
62  sessions_.emplace_back(it.first, it.second);
63  }
65  std::make_unique<FakeSessionCallbacks>()));
66  }
std::unique_ptr< ThreadSafeSSLSessionCache > cache_
std::vector< std::pair< SSL_SESSION *, size_t > > getSessions()
Definition: TestUtil.cpp:320
std::vector< std::pair< SSL_SESSION *, size_t > > sessions_

Member Data Documentation

std::unique_ptr<ThreadSafeSSLSessionCache> ThreadSafeSSLSessionCacheTest::cache_

Definition at line 69 of file ThreadSafeSSLSessionCacheTest.cpp.

std::vector<std::pair<SSL_SESSION*, size_t> > ThreadSafeSSLSessionCacheTest::sessions_

Definition at line 68 of file ThreadSafeSSLSessionCacheTest.cpp.


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