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

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

Issue 14083012: QUIC: retransmit packets with the correct encryption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved HandshakeMode enum to MockCryptoClientStream Created 7 years, 8 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 f774328f2cc4284648a5da70dba1f4d7b058a254..20926ce1add1a48cc5404d76f55672a93bd9ed4b 100644
--- a/net/quic/test_tools/mock_crypto_client_stream_factory.cc
+++ b/net/quic/test_tools/mock_crypto_client_stream_factory.cc
@@ -6,12 +6,15 @@
#include "base/lazy_instance.h"
#include "net/quic/quic_crypto_client_stream.h"
-#include "net/quic/test_tools/mock_crypto_client_stream.h"
using std::string;
namespace net {
+MockCryptoClientStreamFactory::MockCryptoClientStreamFactory()
+ : handshake_mode_(MockCryptoClientStream::CONFIRM_HANDSHAKE) {
+}
+
QuicCryptoClientStream*
MockCryptoClientStreamFactory::CreateQuicCryptoClientStream(
const string& server_hostname,
@@ -19,7 +22,7 @@ MockCryptoClientStreamFactory::CreateQuicCryptoClientStream(
QuicSession* session,
QuicCryptoClientConfig* crypto_config) {
return new MockCryptoClientStream(server_hostname, config, session,
- crypto_config);
+ crypto_config, handshake_mode_);
}
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698