proxygen
|
#include <chrono>
#include <vector>
#include <folly/DynamicConverter.h>
#include <gtest/gtest.h>
#include <wangle/client/ssl/SSLSession.h>
#include <wangle/client/ssl/SSLSessionCacheData.h>
#include <wangle/client/ssl/SSLSessionCacheUtils.h>
#include <wangle/client/ssl/test/TestUtil.h>
#include <wangle/ssl/SSLUtil.h>
Go to the source code of this file.
Classes | |
class | SSLSessionCacheDataTest |
Typedefs | |
using | SSLCtxDeleter = folly::static_function_deleter< SSL_CTX,&SSL_CTX_free > |
using | SSLCtxPtr = std::unique_ptr< SSL_CTX, SSLCtxDeleter > |
Functions | |
TEST_F (SSLSessionCacheDataTest, Basic) | |
TEST_F (SSLSessionCacheDataTest, CloneSSLSession) | |
TEST_F (SSLSessionCacheDataTest, ServiceIdentity) | |
using SSLCtxDeleter = folly::static_function_deleter<SSL_CTX, &SSL_CTX_free> |
Definition at line 31 of file SSLSessionCacheDataTest.cpp.
using SSLCtxPtr = std::unique_ptr<SSL_CTX, SSLCtxDeleter> |
Definition at line 32 of file SSLSessionCacheDataTest.cpp.
TEST_F | ( | SSLSessionCacheDataTest | , |
Basic | |||
) |
Definition at line 51 of file SSLSessionCacheDataTest.cpp.
References wangle::SSLSessionCacheData::addedTime, data, EXPECT_EQ, now(), wangle::SSLSessionCacheData::serviceIdentity, wangle::SSLSessionCacheData::sessionData, and folly::toDynamic().
TEST_F | ( | SSLSessionCacheDataTest | , |
CloneSSLSession | |||
) |
Definition at line 65 of file SSLSessionCacheDataTest.cpp.
References wangle::cloneSSLSession(), and EXPECT_TRUE.
TEST_F | ( | SSLSessionCacheDataTest | , |
ServiceIdentity | |||
) |
Definition at line 72 of file SSLSessionCacheDataTest.cpp.
References wangle::cloneSSLSession(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, folly::gen::first, wangle::getCacheDataForSession(), wangle::getSessionFromCacheData(), wangle::getSessionServiceIdentity(), wangle::setSessionServiceIdentity(), and string.