Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
MockQuicTransport Class Reference

#include <mock_quic_transport.h>

Classes

struct  EncryptionLevel
 

Public Member Functions

bool Flush ()
 
 MockQuicTransport (bssl::UniquePtr< BIO > bio, SSL *ssl)
 
int ReadApplicationData (uint8_t *out, size_t max_out)
 
bool ReadHandshake ()
 
bool SendAlert (enum ssl_encryption_level_t level, uint8_t alert)
 
bool SetReadSecret (enum ssl_encryption_level_t level, const SSL_CIPHER *cipher, const uint8_t *secret, size_t secret_len)
 
bool SetWriteSecret (enum ssl_encryption_level_t level, const SSL_CIPHER *cipher, const uint8_t *secret, size_t secret_len)
 
bool WriteApplicationData (const uint8_t *in, size_t len)
 
bool WriteHandshakeData (enum ssl_encryption_level_t level, const uint8_t *data, size_t len)
 

Private Member Functions

bool ReadHeader (uint8_t *out_type, enum ssl_encryption_level_t *out_level, size_t *out_len)
 
bool WriteRecord (enum ssl_encryption_level_t level, uint8_t type, const uint8_t *data, size_t len)
 

Private Attributes

size_t app_data_offset_
 
bssl::UniquePtr< BIObio_
 
std::vector< uint8_tpending_app_data_
 
std::vector< EncryptionLevelread_levels_
 
SSLssl_
 
std::vector< EncryptionLevelwrite_levels_
 

Detailed Description

Definition at line 24 of file mock_quic_transport.h.

Constructor & Destructor Documentation

◆ MockQuicTransport()

MockQuicTransport::MockQuicTransport ( bssl::UniquePtr< BIO bio,
SSL ssl 
)
explicit

Definition at line 22 of file mock_quic_transport.cc.

Member Function Documentation

◆ Flush()

bool MockQuicTransport::Flush ( )

Definition at line 274 of file mock_quic_transport.cc.

◆ ReadApplicationData()

int MockQuicTransport::ReadApplicationData ( uint8_t out,
size_t  max_out 
)

Definition at line 172 of file mock_quic_transport.cc.

◆ ReadHandshake()

bool MockQuicTransport::ReadHandshake ( )

Definition at line 154 of file mock_quic_transport.cc.

◆ ReadHeader()

bool MockQuicTransport::ReadHeader ( uint8_t out_type,
enum ssl_encryption_level_t *  out_level,
size_t *  out_len 
)
private

Definition at line 84 of file mock_quic_transport.cc.

◆ SendAlert()

bool MockQuicTransport::SendAlert ( enum ssl_encryption_level_t  level,
uint8_t  alert 
)

Definition at line 276 of file mock_quic_transport.cc.

◆ SetReadSecret()

bool MockQuicTransport::SetReadSecret ( enum ssl_encryption_level_t  level,
const SSL_CIPHER cipher,
const uint8_t secret,
size_t  secret_len 
)

Definition at line 28 of file mock_quic_transport.cc.

◆ SetWriteSecret()

bool MockQuicTransport::SetWriteSecret ( enum ssl_encryption_level_t  level,
const SSL_CIPHER cipher,
const uint8_t secret,
size_t  secret_len 
)

Definition at line 38 of file mock_quic_transport.cc.

◆ WriteApplicationData()

bool MockQuicTransport::WriteApplicationData ( const uint8_t in,
size_t  len 
)

Definition at line 266 of file mock_quic_transport.cc.

◆ WriteHandshakeData()

bool MockQuicTransport::WriteHandshakeData ( enum ssl_encryption_level_t  level,
const uint8_t data,
size_t  len 
)

Definition at line 261 of file mock_quic_transport.cc.

◆ WriteRecord()

bool MockQuicTransport::WriteRecord ( enum ssl_encryption_level_t  level,
uint8_t  type,
const uint8_t data,
size_t  len 
)
private

Definition at line 241 of file mock_quic_transport.cc.

Member Data Documentation

◆ app_data_offset_

size_t MockQuicTransport::app_data_offset_
private

Definition at line 63 of file mock_quic_transport.h.

◆ bio_

bssl::UniquePtr<BIO> MockQuicTransport::bio_
private

Definition at line 60 of file mock_quic_transport.h.

◆ pending_app_data_

std::vector<uint8_t> MockQuicTransport::pending_app_data_
private

Definition at line 62 of file mock_quic_transport.h.

◆ read_levels_

std::vector<EncryptionLevel> MockQuicTransport::read_levels_
private

Definition at line 70 of file mock_quic_transport.h.

◆ ssl_

SSL* MockQuicTransport::ssl_
private

Definition at line 73 of file mock_quic_transport.h.

◆ write_levels_

std::vector<EncryptionLevel> MockQuicTransport::write_levels_
private

Definition at line 71 of file mock_quic_transport.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:47