108 return _getCertMessage(buf);
139 void(
const std::vector<std::shared_ptr<const PeerCert>>&));
147 makePlaintextReadRecordLayer,
148 std::unique_ptr<PlaintextReadRecordLayer>());
150 makePlaintextWriteRecordLayer,
151 std::unique_ptr<PlaintextWriteRecordLayer>());
153 makeEncryptedReadRecordLayer,
154 std::unique_ptr<EncryptedReadRecordLayer>(
157 makeEncryptedWriteRecordLayer,
158 std::unique_ptr<EncryptedWriteRecordLayer>(
164 makeHandshakeContext,
165 std::unique_ptr<HandshakeContext>(
CipherSuite cipher));
175 return _makePeerCert(certData);
179 ON_CALL(*
this, makePlaintextReadRecordLayer())
181 []() {
return std::make_unique<MockPlaintextReadRecordLayer>(); }));
183 ON_CALL(*
this, makePlaintextWriteRecordLayer())
185 auto ret = std::make_unique<MockPlaintextWriteRecordLayer>();
189 ON_CALL(*
this, makeEncryptedReadRecordLayer(
_))
191 return std::make_unique<MockEncryptedReadRecordLayer>(
195 ON_CALL(*
this, makeEncryptedWriteRecordLayer(
_))
198 std::make_unique<MockEncryptedWriteRecordLayer>(encryptionLevel);
204 auto ret = std::make_unique<MockKeyScheduler>();
208 ON_CALL(*
this, makeHandshakeContext(
_))
210 auto ret = std::make_unique<MockHandshakeContext>();
215 auto ret = std::make_unique<MockKeyExchange>();
220 auto ret = std::make_unique<MockAead>();
233 return std::make_unique<MockPeerCert>();
244 return CertificateCompressionAlgorithm::zlib;
255 return CertificateCompressionAlgorithm::zlib;
273 setReplaySafetyCallback,
280 return getApplicationProtocol_();
288 writeAppDataInternal,
291 std::shared_ptr<folly::IOBuf>,
296 std::unique_ptr<folly::IOBuf>&& buf,
298 writeAppDataInternal(
299 callback, std::shared_ptr<folly::IOBuf>(buf.release()),
flags);
Integral2 random(Integral1 low, Integral2 up)
#define MOCK_CONST_METHOD1(m,...)
CertificateCompressionAlgorithm
std::unique_ptr< X509, X509Deleter > X509UniquePtr
void writeAppData(folly::AsyncTransportWrapper::WriteCallback *callback, std::unique_ptr< folly::IOBuf > &&buf, folly::WriteFlags flags=folly::WriteFlags::NONE) override
—— Concurrent Priority Queue Implementation ——
requires E e noexcept(noexcept(s.error(std::move(e))))
requires And< SemiMovable< VN >... > &&SemiMovable< E > auto error(E e)
PolymorphicAction< internal::InvokeWithoutArgsAction< FunctionImpl > > InvokeWithoutArgs(FunctionImpl function_impl)
#define MOCK_METHOD3(m,...)
std::string getApplicationProtocol() const noexceptoverride
PolymorphicAction< internal::InvokeAction< FunctionImpl > > Invoke(FunctionImpl function_impl)
CertificateMsg getCertMessage(Buf buf) const override
std::unique_ptr< folly::IOBuf > makeRandom(size_t n)
std::array< uint8_t, 32 > Random
std::enable_if<!std::is_array< T >::value, std::unique_ptr< T > >::type make_unique(Args &&...args)
Buf getFinishedData(std::unique_ptr< KeyDerivation > &deriver, Buf &finishedMacKey, const Buf &finishedTranscript)
#define MOCK_CONST_METHOD3(m,...)
Optional< NamedGroup > group
std::shared_ptr< PeerCert > getPeerCert(const CertAndKey &cert)
#define ON_CALL(obj, call)
std::unique_ptr< AsyncFizzBase, folly::DelayedDestruction::Destructor > UniquePtr
std::unique_ptr< Aead > getCipher(const CipherParams ¶ms)
#define MOCK_METHOD1(m,...)
#define MOCK_CONST_METHOD4(m,...)
std::unique_ptr< folly::IOBuf > Buf
#define MOCK_CONST_METHOD2(m,...)
#define MOCK_CONST_METHOD0(m,...)
std::shared_ptr< PeerCert > makePeerCert(Buf certData) const override
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_METHOD0(m,...)