proxygen
|
Public Member Functions | |
void | SetUp () override |
![]() | |
virtual | ~Test () |
virtual | ~Test () |
virtual | ~Test () |
Static Protected Member Functions | |
static ClientHello | getDefaultClientHello () |
Protected Attributes | |
std::shared_ptr< FizzClientContext > | context_ |
MockPlaintextReadRecordLayer * | mockRead_ |
MockPlaintextWriteRecordLayer * | mockWrite_ |
MockEncryptedWriteRecordLayer * | mockEarlyWrite_ |
MockEncryptedWriteRecordLayer * | mockHandshakeWrite_ |
MockEncryptedReadRecordLayer * | mockHandshakeRead_ |
MockKeyExchange * | mockKex_ |
MockKeyScheduler * | mockKeyScheduler_ |
MockHandshakeContext * | mockHandshakeContext_ |
std::shared_ptr< MockPeerCert > | mockLeaf_ |
std::shared_ptr< MockPeerCert > | mockIntermediate_ |
std::shared_ptr< MockSelfCert > | mockClientCert_ |
std::shared_ptr< MockCertificateVerifier > | verifier_ |
std::shared_ptr< MockPskCache > | pskCache_ |
![]() | |
ClientTypes::State | state_ |
MockFactory * | factory_ |
Additional Inherited Members | |
![]() | |
typedef internal::SetUpTestCaseFunc | SetUpTestCaseFunc |
typedef internal::TearDownTestCaseFunc | TearDownTestCaseFunc |
typedef internal::SetUpTestCaseFunc | SetUpTestCaseFunc |
typedef internal::TearDownTestCaseFunc | TearDownTestCaseFunc |
typedef internal::SetUpTestCaseFunc | SetUpTestCaseFunc |
typedef internal::TearDownTestCaseFunc | TearDownTestCaseFunc |
![]() | |
static void | SetUpTestCase () |
static void | TearDownTestCase () |
static bool | HasFatalFailure () |
static bool | HasNonfatalFailure () |
static bool | HasFailure () |
static void | RecordProperty (const std::string &key, const std::string &value) |
static void | RecordProperty (const std::string &key, int value) |
static void | SetUpTestCase () |
static void | TearDownTestCase () |
static bool | HasFatalFailure () |
static bool | HasNonfatalFailure () |
static bool | HasFailure () |
static void | RecordProperty (const std::string &key, const std::string &value) |
static void | RecordProperty (const std::string &key, int value) |
static void | SetUpTestCase () |
static void | TearDownTestCase () |
static bool | HasFatalFailure () |
static bool | HasNonfatalFailure () |
static bool | HasFailure () |
static void | RecordProperty (const std::string &key, const std::string &value) |
static void | RecordProperty (const std::string &key, int value) |
![]() | |
using | MutateState = folly::Function< void(typename ClientTypes::State &)> |
Definition at line 28 of file ClientProtocolTest.cpp.
|
protected |
Definition at line 2591 of file ClientProtocolTest.cpp.
References testing::_, fizz::client::detail::actions(), fizz::AppTraffic, fizz::test::TestMessages::certificate(), fizz::test::TestMessages::certificateVerify(), fizz::Client, fizz::ClientAppTraffic, fizz::TLSContent::contentType, folly::IOBuf::copyBuffer(), fizz::TLSContent::data, fizz::ecdsa_secp256r1_sha256, fizz::encodeHandshake(), fizz::TLSContent::encryptionLevel, EXPECT_CALL, EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, fizz::ExporterMaster, fizz::test::TestMessages::finished(), fizz::TLSMessage::fragment, fizz::detail::getFinishedData(), fizz::Handshake, fizz::handshake, testing::Invoke(), testing::InvokeWithoutArgs(), fizz::client::detail::processEvent(), fizz::ResumptionMaster, fizz::ServerAppTraffic, fizz::TLSMessage::type, and fizz::detail::write().
|
inlineprotected |
Definition at line 89 of file ClientProtocolTest.cpp.
References fizz::client::CachedPsk::clientCert, fizz::client::test::getTestPsk(), now(), and fizz::client::CachedPsk::serverCert.
|
inlinestaticprotected |
Definition at line 85 of file ClientProtocolTest.cpp.
References fizz::test::TestMessages::clientHello().
|
inlineprotected |
Definition at line 96 of file ClientProtocolTest.cpp.
References fizz::client::EarlyDataParams::alpn, fizz::client::EarlyDataParams::cipher, fizz::client::EarlyDataParams::clientCert, folly::IOBuf::copyBuffer(), fizz::client::EarlyDataParams::earlyExporterSecret, params, fizz::client::EarlyDataParams::serverCert, fizz::test::TestProtocolVersion, fizz::TLS_AES_128_GCM_SHA256, and fizz::client::EarlyDataParams::version.
|
inlineprotected |
Definition at line 74 of file ClientProtocolTest.cpp.
References folly::gen::move.
|
inlineprotected |
Definition at line 67 of file ClientProtocolTest.cpp.
References fizz::EarlyData.
|
inlineprotected |
Definition at line 57 of file ClientProtocolTest.cpp.
References fizz::Handshake.
|
inlineprotected |
Definition at line 49 of file ClientProtocolTest.cpp.
|
inlineoverridevirtual |
Reimplemented from testing::Test.
Definition at line 30 of file ClientProtocolTest.cpp.
References folly::gen::move, fizz::tls_1_3, fizz::TLS_AES_128_GCM_SHA256, fizz::TLS_AES_256_GCM_SHA384, and verifier_.
|
inlineprotected |
Definition at line 225 of file ClientProtocolTest.cpp.
References folly::IOBuf::copyBuffer(), fizz::tls_1_3, fizz::TLS_AES_128_GCM_SHA256, and fizz::x25519.
|
inlineprotected |
Definition at line 182 of file ClientProtocolTest.cpp.
|
inlineprotected |
Definition at line 189 of file ClientProtocolTest.cpp.
|
inlineprotected |
Definition at line 197 of file ClientProtocolTest.cpp.
References folly::gen::move, and verifier_.
|
inlineprotected |
Definition at line 155 of file ClientProtocolTest.cpp.
References fizz::application_layer_protocol_negotiation, fizz::early_data, fizz::key_share, fizz::key_share_old, fizz::NotAttempted, fizz::pre_shared_key, fizz::server_name, fizz::supported_versions, fizz::test::TestProtocolVersion, and fizz::TLS_AES_128_GCM_SHA256.
|
inlineprotected |
Definition at line 173 of file ClientProtocolTest.cpp.
References fizz::Attempted, fizz::sm::getEarlyDataParams(), and fizz::Resumption.
|
inlineprotected |
Definition at line 211 of file ClientProtocolTest.cpp.
References folly::IOBuf::copyBuffer(), fizz::NotAttempted, fizz::test::TestProtocolVersion, fizz::TLS_AES_128_GCM_SHA256, and fizz::x25519.
|
inlineprotected |
Definition at line 107 of file ClientProtocolTest.cpp.
References fizz::application_layer_protocol_negotiation, folly::IOBuf::copyBuffer(), folly::IOBuf::create(), fizz::early_data, fizz::key_share, fizz::key_share_old, folly::gen::move, fizz::NotAttempted, fizz::pre_shared_key, random(), fizz::server_name, fizz::supported_versions, verifier_, and fizz::x25519.
|
inlineprotected |
Definition at line 135 of file ClientProtocolTest.cpp.
References fizz::application_layer_protocol_negotiation, fizz::early_data, fizz::HelloRetryRequest, fizz::key_share, fizz::key_share_old, folly::gen::move, fizz::pre_shared_key, fizz::server_name, fizz::supported_versions, fizz::test::TestProtocolVersion, fizz::TLS_AES_128_GCM_SHA256, and fizz::x25519.
|
protected |
Definition at line 240 of file ClientProtocolTest.cpp.
|
protected |
Definition at line 251 of file ClientProtocolTest.cpp.
|
protected |
Definition at line 243 of file ClientProtocolTest.cpp.
|
protected |
Definition at line 248 of file ClientProtocolTest.cpp.
|
protected |
Definition at line 245 of file ClientProtocolTest.cpp.
|
protected |
Definition at line 244 of file ClientProtocolTest.cpp.
|
protected |
Definition at line 250 of file ClientProtocolTest.cpp.
|
protected |
Definition at line 246 of file ClientProtocolTest.cpp.
|
protected |
Definition at line 247 of file ClientProtocolTest.cpp.
|
protected |
Definition at line 249 of file ClientProtocolTest.cpp.
|
protected |
Definition at line 241 of file ClientProtocolTest.cpp.
|
protected |
Definition at line 242 of file ClientProtocolTest.cpp.
|
protected |
Definition at line 253 of file ClientProtocolTest.cpp.
|
protected |
Definition at line 252 of file ClientProtocolTest.cpp.