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

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

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: Fix 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.cc
diff --git a/net/quic/test_tools/mock_crypto_client_stream_factory.cc b/net/quic/test_tools/mock_crypto_client_stream_factory.cc
index 7578790e136333ddc3ff07da36216e9a90b500c3..e54fb41e2f559882b53a0fc20e75095dc1b3e6d6 100644
--- a/net/quic/test_tools/mock_crypto_client_stream_factory.cc
+++ b/net/quic/test_tools/mock_crypto_client_stream_factory.cc
@@ -12,7 +12,8 @@ using std::string;
namespace net {
MockCryptoClientStreamFactory::MockCryptoClientStreamFactory()
- : handshake_mode_(MockCryptoClientStream::CONFIRM_HANDSHAKE) {
+ : handshake_mode_(MockCryptoClientStream::CONFIRM_HANDSHAKE),
+ last_stream_(NULL) {
}
QuicCryptoClientStream*
@@ -20,8 +21,9 @@ MockCryptoClientStreamFactory::CreateQuicCryptoClientStream(
const string& server_hostname,
QuicSession* session,
QuicCryptoClientConfig* crypto_config) {
- return new MockCryptoClientStream(server_hostname, session, crypto_config,
- handshake_mode_);
+ last_stream_ = new MockCryptoClientStream(server_hostname, session,
+ crypto_config, handshake_mode_);
+ return last_stream_;
}
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698