OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/quic/test_tools/simple_quic_framer.h" | 5 #include "net/quic/test_tools/simple_quic_framer.h" |
6 | 6 |
7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
8 #include "net/quic/crypto/crypto_framer.h" | 8 #include "net/quic/crypto/crypto_framer.h" |
9 #include "net/quic/crypto/quic_decrypter.h" | 9 #include "net/quic/crypto/quic_decrypter.h" |
10 #include "net/quic/crypto/quic_encrypter.h" | 10 #include "net/quic/crypto/quic_encrypter.h" |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 201 |
202 const QuicFecData& SimpleQuicFramer::fec_data() const { | 202 const QuicFecData& SimpleQuicFramer::fec_data() const { |
203 return visitor_->fec_data(); | 203 return visitor_->fec_data(); |
204 } | 204 } |
205 | 205 |
206 const QuicVersionNegotiationPacket* | 206 const QuicVersionNegotiationPacket* |
207 SimpleQuicFramer::version_negotiation_packet() const { | 207 SimpleQuicFramer::version_negotiation_packet() const { |
208 return visitor_->version_negotiation_packet(); | 208 return visitor_->version_negotiation_packet(); |
209 } | 209 } |
210 | 210 |
211 const QuicPublicResetPacket* SimpleQuicFramer::public_reset_packet() const { | |
212 return visitor_->public_reset_packet(); | |
213 } | |
214 | |
215 QuicFramer* SimpleQuicFramer::framer() { | 211 QuicFramer* SimpleQuicFramer::framer() { |
216 return &framer_; | 212 return &framer_; |
217 } | 213 } |
218 | 214 |
219 size_t SimpleQuicFramer::num_frames() const { | 215 size_t SimpleQuicFramer::num_frames() const { |
220 return ack_frames().size() + | 216 return ack_frames().size() + |
221 goaway_frames().size() + | 217 goaway_frames().size() + |
222 rst_stream_frames().size() + | 218 rst_stream_frames().size() + |
223 stop_waiting_frames().size() + | 219 stop_waiting_frames().size() + |
224 stream_frames().size() + | 220 stream_frames().size() + |
(...skipping 27 matching lines...) Expand all Loading... |
252 return visitor_->goaway_frames(); | 248 return visitor_->goaway_frames(); |
253 } | 249 } |
254 | 250 |
255 const vector<QuicConnectionCloseFrame>& | 251 const vector<QuicConnectionCloseFrame>& |
256 SimpleQuicFramer::connection_close_frames() const { | 252 SimpleQuicFramer::connection_close_frames() const { |
257 return visitor_->connection_close_frames(); | 253 return visitor_->connection_close_frames(); |
258 } | 254 } |
259 | 255 |
260 } // namespace test | 256 } // namespace test |
261 } // namespace net | 257 } // namespace net |
OLD | NEW |