Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Unified Diff: net/quic/test_tools/mock_crypto_client_stream.cc

Issue 1665743003: Refactor QuicCryptoClientStream to use QuicSession directly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@113297234
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/test_tools/mock_crypto_client_stream.h ('k') | net/quic/test_tools/quic_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/mock_crypto_client_stream.cc
diff --git a/net/quic/test_tools/mock_crypto_client_stream.cc b/net/quic/test_tools/mock_crypto_client_stream.cc
index b0db4dd05d372f5e64bc49ef4aef1aecc6dd8598..580beb61a9d87fa91684e1bfe301b0142d65ae3c 100644
--- a/net/quic/test_tools/mock_crypto_client_stream.cc
+++ b/net/quic/test_tools/mock_crypto_client_stream.cc
@@ -21,7 +21,11 @@ MockCryptoClientStream::MockCryptoClientStream(
QuicCryptoClientConfig* crypto_config,
HandshakeMode handshake_mode,
const ProofVerifyDetails* proof_verify_details)
- : QuicCryptoClientStream(server_id, session, verify_context, crypto_config),
+ : QuicCryptoClientStream(server_id,
+ session,
+ verify_context,
+ crypto_config,
+ session),
handshake_mode_(handshake_mode),
proof_verify_details_(proof_verify_details) {}
@@ -41,7 +45,8 @@ void MockCryptoClientStream::CryptoConnect() {
crypto_negotiated_params_.key_exchange = kC255;
crypto_negotiated_params_.aead = kAESG;
if (proof_verify_details_) {
- client_session()->OnProofVerifyDetailsAvailable(*proof_verify_details_);
+ reinterpret_cast<QuicClientSessionBase*>(session())
+ ->OnProofVerifyDetailsAvailable(*proof_verify_details_);
}
session()->connection()->SetDecrypter(ENCRYPTION_INITIAL,
QuicDecrypter::Create(kNULL));
@@ -59,7 +64,8 @@ void MockCryptoClientStream::CryptoConnect() {
crypto_negotiated_params_.key_exchange = kC255;
crypto_negotiated_params_.aead = kAESG;
if (proof_verify_details_) {
- client_session()->OnProofVerifyDetailsAvailable(*proof_verify_details_);
+ reinterpret_cast<QuicClientSessionBase*>(session())
+ ->OnProofVerifyDetailsAvailable(*proof_verify_details_);
}
SetConfigNegotiated();
session()->connection()->SetDecrypter(ENCRYPTION_FORWARD_SECURE,
@@ -116,8 +122,4 @@ void MockCryptoClientStream::SetConfigNegotiated() {
session()->OnConfigNegotiated();
}
-QuicClientSessionBase* MockCryptoClientStream::client_session() {
- return reinterpret_cast<QuicClientSessionBase*>(session());
-}
-
} // namespace net
« no previous file with comments | « net/quic/test_tools/mock_crypto_client_stream.h ('k') | net/quic/test_tools/quic_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698