9 #include <gtest/gtest.h> 14 using namespace folly;
23 manager_ = std::make_unique<CertDecompressionManager>();
35 auto comp = std::make_shared<MockCertificateDecompressor>();
40 std::unique_ptr<CertDecompressionManager>
manager_;
44 auto decomp1 = makeMockDecompressor(1);
45 auto decomp2 = makeMockDecompressor(2);
47 manager_->setDecompressors(
49 std::static_pointer_cast<CertificateDecompressor>(decomp2)});
51 auto supported = manager_->getSupportedAlgorithms();
55 auto fetchedDecomp1 = manager_->getDecompressor(toAlgo(1));
56 auto fetchedDecomp2 = manager_->getDecompressor(toAlgo(2));
57 auto invalidDecomp = manager_->getDecompressor(toAlgo(3));
64 auto decomp1 = makeMockDecompressor(1);
65 auto decomp2 = makeMockDecompressor(1);
66 auto decomp3 = makeMockDecompressor(2);
68 manager_->setDecompressors(
70 std::static_pointer_cast<CertificateDecompressor>(decomp2),
73 auto supported = manager_->getSupportedAlgorithms();
77 auto fetchedDecomp1 = manager_->getDecompressor(toAlgo(1));
78 auto fetchedDecomp2 = manager_->getDecompressor(toAlgo(2));
CertificateCompressionAlgorithm
#define EXPECT_EQ(val1, val2)
CertificateCompressionAlgorithm toAlgo(uint16_t n)
—— Concurrent Priority Queue Implementation ——
TEST_F(AsyncSSLSocketWriteTest, write_coalescing1)
std::unique_ptr< CertDecompressionManager > manager_
#define EXPECT_NE(val1, val2)
#define EXPECT_CALL(obj, call)
internal::ReturnAction< R > Return(R value)
std::shared_ptr< MockCertificateDecompressor > makeMockDecompressor(uint16_t n)