9 #include <gmock/gmock.h> 10 #include <gtest/gtest.h> 18 using namespace folly;
22 "020000380303cf21ad74e59a6111be1d8c021e65b891c2a211167abb8c5e079e09e2c8a8339c001301000010002b00020304002c0006000474657374"};
25 "0200003e0303cf21ad74e59a6111be1d8c021e65b891c2a211167abb8c5e079e09e2c8a8339c001301000016002b0002030400330002001d002c0006000474657374"};
31 TEST(GetStatelessHrrTest, NoGroup) {
40 TEST(GetStatelessHrrTest, Group) {
52 factory_.setDefaults();
66 return std::unique_ptr<HandshakeContext>(mockHandshakeContext);
69 *mockHandshakeContext,
70 appendToTranscript(BufMatches(
"clienthelloencoding")))
72 EXPECT_CALL(*mockHandshakeContext, getHandshakeContext())
118 auto ret = std::make_unique<MockHandshakeContext>();
137 auto ret = std::make_unique<MockHandshakeContext>();
Buf getStatelessHelloRetryRequest(ProtocolVersion version, CipherSuite cipher, folly::Optional< NamedGroup > group, Buf cookie)
#define EXPECT_THROW(statement, expected_exception)
static const std::string chlo
CookieState getCookieState(const Factory &factory, const std::vector< ProtocolVersion > &supportedVersions, const std::vector< std::vector< CipherSuite >> &supportedCiphers, const std::vector< NamedGroup > &supportedGroups, const ClientHello &chlo, Buf appToken)
#define EXPECT_EQ(val1, val2)
static constexpr StringPiece statelessHrrGroup
Gen seq(Value first, Value last)
—— Concurrent Priority Queue Implementation ——
PolymorphicAction< internal::InvokeWithoutArgsAction< FunctionImpl > > InvokeWithoutArgs(FunctionImpl function_impl)
TEST(IOBufUtilTest, TrimBytes)
PolymorphicAction< internal::InvokeAction< FunctionImpl > > Invoke(FunctionImpl function_impl)
static void removeExtension(T &msg, ExtensionType ext)
#define EXPECT_TRUE(condition)
TEST_F(RSAPSSTest, TestSignVerify)
#define EXPECT_CALL(obj, call)
#define EXPECT_FALSE(condition)
bool hexlify(const InputString &input, OutputString &output, bool append_output)
static std::unique_ptr< IOBuf > copyBuffer(const void *buf, std::size_t size, std::size_t headroom=0, std::size_t minTailroom=0)
static ClientHello clientHello()
constexpr ProtocolVersion TestProtocolVersion
static constexpr StringPiece statelessHrr