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 734b1dc03c6c115152895d9fcbad1bc51114e3cc..cf2df6e0691c6850e19966ddc1d2fd55116a212d 100644 |
--- a/net/quic/test_tools/simple_quic_framer.cc |
+++ b/net/quic/test_tools/simple_quic_framer.cc |
@@ -126,6 +126,9 @@ class SimpleFramerVisitor : public QuicFramerVisitorInterface { |
return stop_waiting_frames_; |
} |
const std::vector<QuicPingFrame>& ping_frames() const { return ping_frames_; } |
+ const std::vector<QuicPaddingFrame>& padding_frames() const { |
+ return padding_frames_; |
+ } |
const QuicVersionNegotiationPacket* version_negotiation_packet() const { |
return version_negotiation_packet_.get(); |
} |
@@ -192,7 +195,7 @@ size_t SimpleQuicFramer::num_frames() const { |
return ack_frames().size() + goaway_frames().size() + |
rst_stream_frames().size() + stop_waiting_frames().size() + |
stream_frames().size() + ping_frames().size() + |
- connection_close_frames().size(); |
+ connection_close_frames().size() + padding_frames().size(); |
} |
const std::vector<QuicAckFrame>& SimpleQuicFramer::ack_frames() const { |
@@ -227,5 +230,9 @@ SimpleQuicFramer::connection_close_frames() const { |
return visitor_->connection_close_frames(); |
} |
+const std::vector<QuicPaddingFrame>& SimpleQuicFramer::padding_frames() const { |
+ return visitor_->padding_frames(); |
+} |
+ |
} // namespace test |
} // namespace net |