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

Unified Diff: net/quic/test_tools/simple_quic_framer.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/simple_quic_framer.cc
diff --git a/net/quic/test_tools/simple_quic_framer.cc b/net/quic/test_tools/simple_quic_framer.cc
index 7bd1ff10f579572908b66aea5ddac88e8c4ecfe1..546ae9922ca69c63de3d25173145b7202b29d682 100644
--- a/net/quic/test_tools/simple_quic_framer.cc
+++ b/net/quic/test_tools/simple_quic_framer.cc
@@ -128,11 +128,7 @@ class SimpleFramerVisitor : public QuicFramerVisitorInterface {
};
SimpleQuicFramer::SimpleQuicFramer()
- : framer_(kQuicVersion1,
- QuicDecrypter::Create(kNULL),
- QuicEncrypter::Create(kNULL),
- QuicTime::Zero(),
- true),
+ : framer_(kQuicVersion1, QuicTime::Zero(), true),
visitor_(NULL) {
}
@@ -140,7 +136,8 @@ SimpleQuicFramer::~SimpleQuicFramer() {
}
bool SimpleQuicFramer::ProcessPacket(const QuicPacket& packet) {
- scoped_ptr<QuicEncryptedPacket> encrypted(framer_.EncryptPacket(0, packet));
+ scoped_ptr<QuicEncryptedPacket> encrypted(framer_.EncryptPacket(
+ ENCRYPTION_NONE, 0, packet));
return ProcessPacket(*encrypted);
}

Powered by Google App Engine
This is Rietveld 408576698