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

Unified Diff: net/quic/chromium/mock_crypto_client_stream_factory.cc

Issue 2780523002: m58 merge QUIC: mark QUIC handshake failed if connection is closed after CryptoConnect (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | net/quic/chromium/quic_chromium_client_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/mock_crypto_client_stream_factory.cc
diff --git a/net/quic/chromium/mock_crypto_client_stream_factory.cc b/net/quic/chromium/mock_crypto_client_stream_factory.cc
index 51f5c811379da6c29de9ec909bbdd8650e8d66db..7619bfd13bcf94f6f84ede0aff78163afb7966da 100644
--- a/net/quic/chromium/mock_crypto_client_stream_factory.cc
+++ b/net/quic/chromium/mock_crypto_client_stream_factory.cc
@@ -29,6 +29,11 @@ MockCryptoClientStreamFactory::CreateQuicCryptoClientStream(
QuicChromiumClientSession* session,
std::unique_ptr<ProofVerifyContext> /*proof_verify_context*/,
QuicCryptoClientConfig* crypto_config) {
+ if (handshake_mode_ == MockCryptoClientStream::USE_DEFAULT_CRYPTO_STREAM) {
+ return new QuicCryptoClientStream(server_id, session, nullptr,
+ crypto_config, session);
+ }
+
const ProofVerifyDetailsChromium* proof_verify_details = nullptr;
if (!proof_verify_details_queue_.empty()) {
proof_verify_details = proof_verify_details_queue_.front();
« no previous file with comments | « no previous file | net/quic/chromium/quic_chromium_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698