27 if (msg.
type == ContentType::application_data) {
29 }
else if (msg.
type == ContentType::handshake) {
31 }
else if (msg.
type == ContentType::alert) {
37 content.
data = std::unique_ptr<folly::IOBuf>();
61 _setAead(baseSecret, aead.get());
76 return _writeInitialClientHello(encoded);
81 ON_CALL(*
this, _writeInitialClientHello(
_))
105 _setAead(baseSecret, aead.get());
#define MOCK_CONST_METHOD1(m,...)
void setWriteDefaults(T *obj)
constexpr detail::Map< Move > move
MockEncryptedReadRecordLayer(EncryptionLevel encryptionLevel)
PolymorphicAction< internal::InvokeWithoutArgsAction< FunctionImpl > > InvokeWithoutArgs(FunctionImpl function_impl)
TLSContent write(TLSMessage &&msg) const override
MockEncryptedWriteRecordLayer(EncryptionLevel encryptionLevel)
PolymorphicAction< internal::InvokeAction< FunctionImpl > > Invoke(FunctionImpl function_impl)
size_t read(T &out, folly::io::Cursor &cursor)
void setAead(folly::ByteRange baseSecret, std::unique_ptr< Aead > aead) override
EncryptionLevel encryptionLevel
TLSContent write(TLSMessage &&msg) const override
TLSContent writeInitialClientHello(Buf encoded) const override
void setAead(folly::ByteRange baseSecret, std::unique_ptr< Aead > aead) override
#define ON_CALL(obj, call)
#define MOCK_METHOD1(m,...)
std::unique_ptr< folly::IOBuf > Buf
#define MOCK_CONST_METHOD0(m,...)
const internal::AnythingMatcher _
static std::unique_ptr< IOBuf > copyBuffer(const void *buf, std::size_t size, std::size_t headroom=0, std::size_t minTailroom=0)
#define MOCK_METHOD2(m,...)