Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
BSSL_NAMESPACE_BEGIN::QUICMethodTest Class Reference
Inheritance diagram for BSSL_NAMESPACE_BEGIN::QUICMethodTest:
Inheritance graph
[legend]

Protected Types

enum  ExpectedError { ExpectedError::kNoError, ExpectedError::kClientError, ExpectedError::kServerError }
 

Protected Member Functions

void AllowOutOfOrderWrites ()
 
bool CompleteHandshakesForQUIC ()
 
bool CreateClientAndServer ()
 
bssl::UniquePtr< SSL_SESSIONCreateClientSessionForQUIC ()
 
SSL_QUIC_METHOD DefaultQUICMethod ()
 
void ExpectHandshakeSuccess ()
 
bool RunQUICHandshakesAndExpectError (ExpectedError expected_error)
 
void SetUp () override
 
- Protected Member Functions inherited from testing::Test
virtual void TearDown ()
 
virtual void TearDown ()
 
virtual void TearDown ()
 
virtual void TearDown ()
 
virtual void TearDown ()
 
virtual void TearDown ()
 
 Test ()
 
 Test ()
 
 Test ()
 
 Test ()
 
 Test ()
 
 Test ()
 

Static Protected Member Functions

static int AddHandshakeDataCallback (SSL *ssl, enum ssl_encryption_level_t level, const uint8_t *data, size_t len)
 
static int FlushFlightCallback (SSL *ssl)
 
static bool ProvideHandshakeData (SSL *ssl, size_t num=std::numeric_limits< size_t >::max())
 
static int SendAlertCallback (SSL *ssl, ssl_encryption_level_t level, uint8_t alert)
 
static int SetReadSecretCallback (SSL *ssl, ssl_encryption_level_t level, const SSL_CIPHER *cipher, const uint8_t *secret, size_t secret_len)
 
static int SetWriteSecretCallback (SSL *ssl, ssl_encryption_level_t level, const SSL_CIPHER *cipher, const uint8_t *secret, size_t secret_len)
 
static MockQUICTransportTransportFromSSL (const SSL *ssl)
 

Protected Attributes

bool allow_out_of_order_writes_ = false
 
bssl::UniquePtr< SSLclient_
 
bssl::UniquePtr< SSL_CTXclient_ctx_
 
bssl::UniquePtr< SSLserver_
 
bssl::UniquePtr< SSL_CTXserver_ctx_
 
std::vector< uint8_tserver_quic_early_data_context_ = {2}
 
std::vector< uint8_tserver_transport_params_ = {1}
 
std::unique_ptr< MockQUICTransportPairtransport_
 

Static Protected Attributes

static UnownedSSLExData< MockQUICTransportex_data_
 

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
virtual ~Test ()
 
virtual ~Test ()
 
virtual ~Test ()
 
virtual ~Test ()
 
virtual ~Test ()
 
- Static Public Member Functions inherited from testing::Test
static bool HasFailure ()
 
static bool HasFailure ()
 
static bool HasFailure ()
 
static bool HasFailure ()
 
static bool HasFailure ()
 
static bool HasFailure ()
 
static bool HasFatalFailure ()
 
static bool HasFatalFailure ()
 
static bool HasFatalFailure ()
 
static bool HasFatalFailure ()
 
static bool HasFatalFailure ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool IsSkipped ()
 
static bool IsSkipped ()
 
static bool IsSkipped ()
 
static bool IsSkipped ()
 
static bool IsSkipped ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
static void RecordProperty (const std::string &key, int value)
 
static void RecordProperty (const std::string &key, int value)
 
static void RecordProperty (const std::string &key, int value)
 
static void RecordProperty (const std::string &key, int value)
 
static void RecordProperty (const std::string &key, int value)
 
static void SetUpTestCase ()
 
static void SetUpTestCase ()
 
static void SetUpTestCase ()
 
static void SetUpTestCase ()
 
static void SetUpTestCase ()
 
static void SetUpTestCase ()
 
static void SetUpTestSuite ()
 
static void SetUpTestSuite ()
 
static void SetUpTestSuite ()
 
static void SetUpTestSuite ()
 
static void SetUpTestSuite ()
 
static void TearDownTestCase ()
 
static void TearDownTestCase ()
 
static void TearDownTestCase ()
 
static void TearDownTestCase ()
 
static void TearDownTestCase ()
 
static void TearDownTestCase ()
 
static void TearDownTestSuite ()
 
static void TearDownTestSuite ()
 
static void TearDownTestSuite ()
 
static void TearDownTestSuite ()
 
static void TearDownTestSuite ()
 

Detailed Description

Definition at line 6045 of file ssl_test.cc.

Member Enumeration Documentation

◆ ExpectedError

Enumerator
kNoError 
kClientError 
kServerError 

Definition at line 6123 of file ssl_test.cc.

Member Function Documentation

◆ AddHandshakeDataCallback()

static int BSSL_NAMESPACE_BEGIN::QUICMethodTest::AddHandshakeDataCallback ( SSL ssl,
enum ssl_encryption_level_t  level,
const uint8_t data,
size_t  len 
)
inlinestaticprotected

Definition at line 6238 of file ssl_test.cc.

◆ AllowOutOfOrderWrites()

void BSSL_NAMESPACE_BEGIN::QUICMethodTest::AllowOutOfOrderWrites ( )
inlineprotected

Definition at line 6088 of file ssl_test.cc.

◆ CompleteHandshakesForQUIC()

bool BSSL_NAMESPACE_BEGIN::QUICMethodTest::CompleteHandshakesForQUIC ( )
inlineprotected

Definition at line 6132 of file ssl_test.cc.

◆ CreateClientAndServer()

bool BSSL_NAMESPACE_BEGIN::QUICMethodTest::CreateClientAndServer ( )
inlineprotected

Definition at line 6092 of file ssl_test.cc.

◆ CreateClientSessionForQUIC()

bssl::UniquePtr<SSL_SESSION> BSSL_NAMESPACE_BEGIN::QUICMethodTest::CreateClientSessionForQUIC ( )
inlineprotected

Definition at line 6184 of file ssl_test.cc.

◆ DefaultQUICMethod()

SSL_QUIC_METHOD BSSL_NAMESPACE_BEGIN::QUICMethodTest::DefaultQUICMethod ( )
inlineprotected

Definition at line 6217 of file ssl_test.cc.

◆ ExpectHandshakeSuccess()

void BSSL_NAMESPACE_BEGIN::QUICMethodTest::ExpectHandshakeSuccess ( )
inlineprotected

Definition at line 6201 of file ssl_test.cc.

◆ FlushFlightCallback()

static int BSSL_NAMESPACE_BEGIN::QUICMethodTest::FlushFlightCallback ( SSL ssl)
inlinestaticprotected

Definition at line 6246 of file ssl_test.cc.

◆ ProvideHandshakeData()

static bool BSSL_NAMESPACE_BEGIN::QUICMethodTest::ProvideHandshakeData ( SSL ssl,
size_t  num = std::numeric_limits<size_t>::max() 
)
inlinestaticprotected

Definition at line 6079 of file ssl_test.cc.

◆ RunQUICHandshakesAndExpectError()

bool BSSL_NAMESPACE_BEGIN::QUICMethodTest::RunQUICHandshakesAndExpectError ( ExpectedError  expected_error)
inlineprotected

Definition at line 6140 of file ssl_test.cc.

◆ SendAlertCallback()

static int BSSL_NAMESPACE_BEGIN::QUICMethodTest::SendAlertCallback ( SSL ssl,
ssl_encryption_level_t  level,
uint8_t  alert 
)
inlinestaticprotected

Definition at line 6248 of file ssl_test.cc.

◆ SetReadSecretCallback()

static int BSSL_NAMESPACE_BEGIN::QUICMethodTest::SetReadSecretCallback ( SSL ssl,
ssl_encryption_level_t  level,
const SSL_CIPHER cipher,
const uint8_t secret,
size_t  secret_len 
)
inlinestaticprotected

Definition at line 6224 of file ssl_test.cc.

◆ SetUp()

void BSSL_NAMESPACE_BEGIN::QUICMethodTest::SetUp ( )
inlineoverrideprotectedvirtual

Reimplemented from testing::Test.

Definition at line 6047 of file ssl_test.cc.

◆ SetWriteSecretCallback()

static int BSSL_NAMESPACE_BEGIN::QUICMethodTest::SetWriteSecretCallback ( SSL ssl,
ssl_encryption_level_t  level,
const SSL_CIPHER cipher,
const uint8_t secret,
size_t  secret_len 
)
inlinestaticprotected

Definition at line 6231 of file ssl_test.cc.

◆ TransportFromSSL()

static MockQUICTransport* BSSL_NAMESPACE_BEGIN::QUICMethodTest::TransportFromSSL ( const SSL ssl)
inlinestaticprotected

Definition at line 6075 of file ssl_test.cc.

Member Data Documentation

◆ allow_out_of_order_writes_

bool BSSL_NAMESPACE_BEGIN::QUICMethodTest::allow_out_of_order_writes_ = false
protected

Definition at line 6266 of file ssl_test.cc.

◆ client_

bssl::UniquePtr<SSL> BSSL_NAMESPACE_BEGIN::QUICMethodTest::client_
protected

Definition at line 6260 of file ssl_test.cc.

◆ client_ctx_

bssl::UniquePtr<SSL_CTX> BSSL_NAMESPACE_BEGIN::QUICMethodTest::client_ctx_
protected

Definition at line 6254 of file ssl_test.cc.

◆ ex_data_

UnownedSSLExData< MockQUICTransport > BSSL_NAMESPACE_BEGIN::QUICMethodTest::ex_data_
staticprotected

Definition at line 6257 of file ssl_test.cc.

◆ server_

bssl::UniquePtr<SSL> BSSL_NAMESPACE_BEGIN::QUICMethodTest::server_
protected

Definition at line 6261 of file ssl_test.cc.

◆ server_ctx_

bssl::UniquePtr<SSL_CTX> BSSL_NAMESPACE_BEGIN::QUICMethodTest::server_ctx_
protected

Definition at line 6255 of file ssl_test.cc.

◆ server_quic_early_data_context_

std::vector<uint8_t> BSSL_NAMESPACE_BEGIN::QUICMethodTest::server_quic_early_data_context_ = {2}
protected

Definition at line 6264 of file ssl_test.cc.

◆ server_transport_params_

std::vector<uint8_t> BSSL_NAMESPACE_BEGIN::QUICMethodTest::server_transport_params_ = {1}
protected

Definition at line 6263 of file ssl_test.cc.

◆ transport_

std::unique_ptr<MockQUICTransportPair> BSSL_NAMESPACE_BEGIN::QUICMethodTest::transport_
protected

Definition at line 6258 of file ssl_test.cc.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:02:58