proxygen
fizz::MockEncryptedReadRecordLayer Class Reference

#include <Mocks.h>

Inheritance diagram for fizz::MockEncryptedReadRecordLayer:
fizz::EncryptedReadRecordLayer fizz::ReadRecordLayer

Public Member Functions

 MockEncryptedReadRecordLayer (EncryptionLevel encryptionLevel)
 
 MOCK_METHOD1 (read, folly::Optional< TLSMessage >(folly::IOBufQueue &buf))
 
 MOCK_CONST_METHOD0 (hasUnparsedHandshakeData, bool())
 
 MOCK_METHOD2 (_setAead, void(folly::ByteRange, Aead *))
 
void setAead (folly::ByteRange baseSecret, std::unique_ptr< Aead > aead) override
 
 MOCK_METHOD1 (setSkipFailedDecryption, void(bool))
 
- Public Member Functions inherited from fizz::EncryptedReadRecordLayer
 ~EncryptedReadRecordLayer () override=default
 
 EncryptedReadRecordLayer (EncryptionLevel encryptionLevel)
 
folly::Optional< TLSMessageread (folly::IOBufQueue &buf) override
 
virtual void setSkipFailedDecryption (bool enabled)
 
void setProtocolVersion (ProtocolVersion version)
 
EncryptionLevel getEncryptionLevel () const override
 
- Public Member Functions inherited from fizz::ReadRecordLayer
virtual ~ReadRecordLayer ()=default
 
virtual folly::Optional< ParamreadEvent (folly::IOBufQueue &socketBuf)
 
virtual bool hasUnparsedHandshakeData () const
 

Additional Inherited Members

- Static Public Member Functions inherited from fizz::ReadRecordLayer
static folly::Optional< ParamdecodeHandshakeMessage (folly::IOBufQueue &buf)
 

Detailed Description

Definition at line 50 of file Mocks.h.

Constructor & Destructor Documentation

fizz::MockEncryptedReadRecordLayer::MockEncryptedReadRecordLayer ( EncryptionLevel  encryptionLevel)
inlineexplicit

Definition at line 52 of file Mocks.h.

References MOCK_CONST_METHOD0, MOCK_METHOD1, MOCK_METHOD2, and fizz::detail::read().

53  : EncryptedReadRecordLayer(encryptionLevel) {}
EncryptedReadRecordLayer(EncryptionLevel encryptionLevel)

Member Function Documentation

fizz::MockEncryptedReadRecordLayer::MOCK_CONST_METHOD0 ( hasUnparsedHandshakeData  ,
bool()   
)
fizz::MockEncryptedReadRecordLayer::MOCK_METHOD1 ( read  ,
folly::Optional< TLSMessage folly::IOBufQueue &buf 
)
fizz::MockEncryptedReadRecordLayer::MOCK_METHOD1 ( setSkipFailedDecryption  ,
void(bool)   
)
fizz::MockEncryptedReadRecordLayer::MOCK_METHOD2 ( _setAead  ,
void(folly::ByteRange, Aead *)   
)
void fizz::MockEncryptedReadRecordLayer::setAead ( folly::ByteRange  baseSecret,
std::unique_ptr< Aead aead 
)
inlineoverridevirtual

Reimplemented from fizz::EncryptedReadRecordLayer.

Definition at line 59 of file Mocks.h.

References MOCK_METHOD1.

60  {
61  _setAead(baseSecret, aead.get());
62  }

The documentation for this class was generated from the following file: