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

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

Issue 12806002: Land Recent QUIC Changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor comment fix Created 7 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/test_tools/quic_test_utils.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5dec9d0217cb383e0a9cef2b9b6976fc31486674..d529ac7cd135de03abe0486a3994b30985de3701 100644
--- a/net/quic/test_tools/simple_quic_framer.cc
+++ b/net/quic/test_tools/simple_quic_framer.cc
@@ -25,9 +25,16 @@ class SimpleFramerVisitor : public QuicFramerVisitorInterface {
error_ = framer->error();
}
+ virtual bool OnProtocolVersionMismatch(QuicVersionTag version) {
+ return false;
+ }
+
virtual void OnPacket() {}
virtual void OnPublicResetPacket(const QuicPublicResetPacket& packet) {}
+ virtual void OnVersionNegotiationPacket(
+ const QuicVersionNegotiationPacket& packet) {}
virtual void OnRevivedPacket() {}
+
virtual bool OnPacketHeader(const QuicPacketHeader& header) {
has_header_ = true;
header_ = header;
@@ -116,7 +123,9 @@ class SimpleFramerVisitor : public QuicFramerVisitorInterface {
SimpleQuicFramer::SimpleQuicFramer()
: framer_(kQuicVersion1,
QuicDecrypter::Create(kNULL),
- QuicEncrypter::Create(kNULL)) {
+ QuicEncrypter::Create(kNULL),
+ true),
+ visitor_(NULL) {
}
SimpleQuicFramer::~SimpleQuicFramer() {
« no previous file with comments | « net/quic/test_tools/quic_test_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698