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

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

Issue 2766603004: 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
Index: net/quic/chromium/mock_crypto_client_stream_factory.h
diff --git a/net/quic/chromium/mock_crypto_client_stream_factory.h b/net/quic/chromium/mock_crypto_client_stream_factory.h
index c61ea05c964df5b5909f1ab9f103c7e7a552c737..50ccb25d1b4ef5a04f7516c4714c4824c61894b3 100644
--- a/net/quic/chromium/mock_crypto_client_stream_factory.h
+++ b/net/quic/chromium/mock_crypto_client_stream_factory.h
@@ -45,11 +45,16 @@ class MockCryptoClientStreamFactory : public QuicCryptoClientStreamFactory {
// Sets initial config for new sessions.
void SetConfig(const QuicConfig& config);
+ void set_use_normal_crypto_stream() { use_normal_crypto_stream_ = true; }
+
private:
MockCryptoClientStream::HandshakeMode handshake_mode_;
MockCryptoClientStream* last_stream_;
std::queue<const ProofVerifyDetailsChromium*> proof_verify_details_queue_;
std::unique_ptr<QuicConfig> config_;
+ // Once set to ture, will generate QuicCryptoClientStream in stead of
+ // MockCryptoClientStream in tests.
Ryan Hamilton 2017/03/22 02:38:48 nit: Instead of adding a new member for this which
+ bool use_normal_crypto_stream_;
DISALLOW_COPY_AND_ASSIGN(MockCryptoClientStreamFactory);
};

Powered by Google App Engine
This is Rietveld 408576698