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

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

Issue 23279011: Require handshake confirmation until a QUIC connection is created succesfully when using a new netw… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added test Created 7 years, 4 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/test_tools/mock_crypto_client_stream_factory.h
diff --git a/net/quic/test_tools/mock_crypto_client_stream_factory.h b/net/quic/test_tools/mock_crypto_client_stream_factory.h
index e3f2a4aba5cfcc581f0cb1d06d47bb5eb33fd564..9d056cbc72d12c57ba295ca65c29f521e098ebb4 100644
--- a/net/quic/test_tools/mock_crypto_client_stream_factory.h
+++ b/net/quic/test_tools/mock_crypto_client_stream_factory.h
@@ -9,7 +9,6 @@
#include "net/quic/quic_crypto_client_stream.h"
#include "net/quic/quic_crypto_client_stream_factory.h"
-#include "net/quic/quic_session.h"
#include "net/quic/test_tools/mock_crypto_client_stream.h"
namespace net {
@@ -30,8 +29,13 @@ class MockCryptoClientStreamFactory : public QuicCryptoClientStreamFactory {
handshake_mode_ = handshake_mode;
}
+ MockCryptoClientStream* last_stream() const {
+ return last_stream_;
+ }
+
private:
MockCryptoClientStream::HandshakeMode handshake_mode_;
+ MockCryptoClientStream* last_stream_;
};
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698