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

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

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 | « net/quic/chromium/quic_stream_factory_test.cc ('k') | net/quic/test_tools/mock_crypto_client_stream.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.h
diff --git a/net/quic/test_tools/mock_crypto_client_stream.h b/net/quic/test_tools/mock_crypto_client_stream.h
index 7c8b9fb109998f7f0f3474b0730883c76819e132..ffec4aa527af99b459fb1ed9f70acd44cdf658fe 100644
--- a/net/quic/test_tools/mock_crypto_client_stream.h
+++ b/net/quic/test_tools/mock_crypto_client_stream.h
@@ -20,6 +20,8 @@ namespace net {
class MockCryptoClientStream : public QuicCryptoClientStream {
public:
+ // TODO(zhongyi): might consider move HandshakeMode up to
+ // MockCryptoClientStreamFactory.
// HandshakeMode enumerates the handshake mode MockCryptoClientStream should
// mock in CryptoConnect.
enum HandshakeMode {
@@ -35,6 +37,11 @@ class MockCryptoClientStream : public QuicCryptoClientStream {
// COLD_START indicates that CryptoConnect will neither establish encryption
// nor confirm the handshake
COLD_START,
+
+ // USE_DEFAULT_CRYPTO_STREAM indicates that MockCryptoClientStreamFactory
+ // will create a QuicCryptoClientStream instead of a
+ // MockCryptoClientStream.
+ USE_DEFAULT_CRYPTO_STREAM,
};
MockCryptoClientStream(
« no previous file with comments | « net/quic/chromium/quic_stream_factory_test.cc ('k') | net/quic/test_tools/mock_crypto_client_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698