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

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

Issue 14287009: Land Recent QUIC Changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with Tot 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
« no previous file with comments | « net/quic/test_tools/quic_test_utils.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | 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 898cf357ea51a03c5bd51edb165b413aae5fb84e..7bd1ff10f579572908b66aea5ddac88e8c4ecfe1 100644
--- a/net/quic/test_tools/simple_quic_framer.cc
+++ b/net/quic/test_tools/simple_quic_framer.cc
@@ -44,22 +44,25 @@ class SimpleFramerVisitor : public QuicFramerVisitorInterface {
virtual void OnFecProtectedPayload(StringPiece payload) OVERRIDE {}
- virtual void OnStreamFrame(const QuicStreamFrame& frame) OVERRIDE {
+ virtual bool OnStreamFrame(const QuicStreamFrame& frame) OVERRIDE {
// Save a copy of the data so it is valid after the packet is processed.
stream_data_.push_back(frame.data.as_string());
QuicStreamFrame stream_frame(frame);
// Make sure that the stream frame points to this data.
stream_frame.data = stream_data_.back();
stream_frames_.push_back(stream_frame);
+ return true;
}
- virtual void OnAckFrame(const QuicAckFrame& frame) OVERRIDE {
+ virtual bool OnAckFrame(const QuicAckFrame& frame) OVERRIDE {
ack_frames_.push_back(frame);
+ return true;
}
- virtual void OnCongestionFeedbackFrame(
+ virtual bool OnCongestionFeedbackFrame(
const QuicCongestionFeedbackFrame& frame) OVERRIDE {
feedback_frames_.push_back(frame);
+ return true;
}
virtual void OnFecData(const QuicFecData& fec) OVERRIDE {
@@ -68,17 +71,20 @@ class SimpleFramerVisitor : public QuicFramerVisitorInterface {
fec_data_.redundancy = fec_redundancy_;
}
- virtual void OnRstStreamFrame(const QuicRstStreamFrame& frame) OVERRIDE {
+ virtual bool OnRstStreamFrame(const QuicRstStreamFrame& frame) OVERRIDE {
rst_stream_frames_.push_back(frame);
+ return true;
}
- virtual void OnConnectionCloseFrame(
+ virtual bool OnConnectionCloseFrame(
const QuicConnectionCloseFrame& frame) OVERRIDE {
connection_close_frames_.push_back(frame);
+ return true;
}
- virtual void OnGoAwayFrame(const QuicGoAwayFrame& frame) OVERRIDE {
+ virtual bool OnGoAwayFrame(const QuicGoAwayFrame& frame) OVERRIDE {
goaway_frames_.push_back(frame);
+ return true;
}
virtual void OnPacketComplete() OVERRIDE {}
« no previous file with comments | « net/quic/test_tools/quic_test_utils.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698