17 #include <gtest/gtest.h> 38 auto it = cache_.find(key);
39 if (it == cache_.end()) {
51 size_t size()
const override {
56 mutable std::map<std::string, SSLSessionPtr>
cache_;
60 TEST(SSLSessionCallbackTest, AttachMultiple) {
#define EXPECT_EQ(val1, val2)
constexpr detail::Map< Move > move
SSLSessionPtr getSSLSession(const std::string &key) const noexceptoverride
requires E e noexcept(noexcept(s.error(std::move(e))))
std::unique_ptr< SSL_SESSION, SessionDestructor > SSLSessionPtr
size_t size() const override
std::map< std::string, SSLSessionPtr > cache_
SSL_CTX * getSSLCtx() const
TEST(GTestEnvVarTest, Dummy)
static void attachCallbacksToContext(SSL_CTX *ctx, SSLSessionCallbacks *callbacks)
static void detachCallbacksFromContext(SSL_CTX *ctx, SSLSessionCallbacks *callbacks)
static SSLSessionCallbacks * getCacheFromContext(SSL_CTX *ctx)
#define EXPECT_FALSE(condition)
bool removeSSLSession(const std::string &) noexceptoverride
void setSSLSession(const std::string &key, SSLSessionPtr session) noexceptoverride