proxygen
fizz::MockEncryptedWriteRecordLayer Class Reference

#include <Mocks.h>

Inheritance diagram for fizz::MockEncryptedWriteRecordLayer:
fizz::EncryptedWriteRecordLayer fizz::WriteRecordLayer

Public Member Functions

 MockEncryptedWriteRecordLayer (EncryptionLevel encryptionLevel)
 
 MOCK_CONST_METHOD1 (_write, TLSContent(TLSMessage &msg))
 
TLSContent write (TLSMessage &&msg) const override
 
 MOCK_METHOD2 (_setAead, void(folly::ByteRange, Aead *))
 
void setAead (folly::ByteRange baseSecret, std::unique_ptr< Aead > aead) override
 
void setDefaults ()
 
- Public Member Functions inherited from fizz::EncryptedWriteRecordLayer
 ~EncryptedWriteRecordLayer () override=default
 
 EncryptedWriteRecordLayer (EncryptionLevel encryptionLevel)
 
void setMaxRecord (uint16_t size)
 
void setMinDesiredRecord (uint16_t size)
 
EncryptionLevel getEncryptionLevel () const override
 
- Public Member Functions inherited from fizz::WriteRecordLayer
virtual ~WriteRecordLayer ()=default
 
TLSContent writeAlert (Alert &&alert) const
 
TLSContent writeAppData (std::unique_ptr< folly::IOBuf > &&appData) const
 
template<typename... Args>
TLSContent writeHandshake (Buf &&encodedHandshakeMsg, Args &&...args) const
 
void setProtocolVersion (ProtocolVersion version) const
 

Additional Inherited Members

- Protected Attributes inherited from fizz::WriteRecordLayer
ProtocolVersion recordVersion_ {ProtocolVersion::tls_1_2}
 
bool useAdditionalData_ {true}
 

Detailed Description

Definition at line 92 of file Mocks.h.

Constructor & Destructor Documentation

fizz::MockEncryptedWriteRecordLayer::MockEncryptedWriteRecordLayer ( EncryptionLevel  encryptionLevel)
inline

Definition at line 94 of file Mocks.h.

References MOCK_CONST_METHOD1.

95  : EncryptedWriteRecordLayer(encryptionLevel) {}
EncryptedWriteRecordLayer(EncryptionLevel encryptionLevel)

Member Function Documentation

fizz::MockEncryptedWriteRecordLayer::MOCK_CONST_METHOD1 ( _write  ,
TLSContent(TLSMessage &msg)   
)
fizz::MockEncryptedWriteRecordLayer::MOCK_METHOD2 ( _setAead  ,
void(folly::ByteRange, Aead *)   
)
void fizz::MockEncryptedWriteRecordLayer::setAead ( folly::ByteRange  baseSecret,
std::unique_ptr< Aead aead 
)
inlineoverridevirtual

Reimplemented from fizz::EncryptedWriteRecordLayer.

Definition at line 103 of file Mocks.h.

104  {
105  _setAead(baseSecret, aead.get());
106  }
void fizz::MockEncryptedWriteRecordLayer::setDefaults ( )
inline

Definition at line 108 of file Mocks.h.

References fizz::setWriteDefaults().

108  {
109  setWriteDefaults(this);
110  }
void setWriteDefaults(T *obj)
Definition: Mocks.h:21
TLSContent fizz::MockEncryptedWriteRecordLayer::write ( TLSMessage &&  msg) const
inlineoverridevirtual

Reimplemented from fizz::EncryptedWriteRecordLayer.

Definition at line 98 of file Mocks.h.

References MOCK_METHOD2.

98  {
99  return _write(msg);
100  }

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