| 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 <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "net/quic/core/crypto/quic_decrypter.h" | 10 #include "net/quic/core/crypto/quic_decrypter.h" |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 const std::vector<QuicRstStreamFrame>& rst_stream_frames() const { | 119 const std::vector<QuicRstStreamFrame>& rst_stream_frames() const { |
| 120 return rst_stream_frames_; | 120 return rst_stream_frames_; |
| 121 } | 121 } |
| 122 const std::vector<std::unique_ptr<QuicStreamFrame>>& stream_frames() const { | 122 const std::vector<std::unique_ptr<QuicStreamFrame>>& stream_frames() const { |
| 123 return stream_frames_; | 123 return stream_frames_; |
| 124 } | 124 } |
| 125 const std::vector<QuicStopWaitingFrame>& stop_waiting_frames() const { | 125 const std::vector<QuicStopWaitingFrame>& stop_waiting_frames() const { |
| 126 return stop_waiting_frames_; | 126 return stop_waiting_frames_; |
| 127 } | 127 } |
| 128 const std::vector<QuicPingFrame>& ping_frames() const { return ping_frames_; } | 128 const std::vector<QuicPingFrame>& ping_frames() const { return ping_frames_; } |
| 129 const std::vector<QuicWindowUpdateFrame>& window_update_frames() const { |
| 130 return window_update_frames_; |
| 131 } |
| 129 const std::vector<QuicPaddingFrame>& padding_frames() const { | 132 const std::vector<QuicPaddingFrame>& padding_frames() const { |
| 130 return padding_frames_; | 133 return padding_frames_; |
| 131 } | 134 } |
| 132 const QuicVersionNegotiationPacket* version_negotiation_packet() const { | 135 const QuicVersionNegotiationPacket* version_negotiation_packet() const { |
| 133 return version_negotiation_packet_.get(); | 136 return version_negotiation_packet_.get(); |
| 134 } | 137 } |
| 135 | 138 |
| 136 private: | 139 private: |
| 137 QuicErrorCode error_; | 140 QuicErrorCode error_; |
| 138 bool has_header_; | 141 bool has_header_; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 207 |
| 205 const std::vector<QuicStopWaitingFrame>& SimpleQuicFramer::stop_waiting_frames() | 208 const std::vector<QuicStopWaitingFrame>& SimpleQuicFramer::stop_waiting_frames() |
| 206 const { | 209 const { |
| 207 return visitor_->stop_waiting_frames(); | 210 return visitor_->stop_waiting_frames(); |
| 208 } | 211 } |
| 209 | 212 |
| 210 const std::vector<QuicPingFrame>& SimpleQuicFramer::ping_frames() const { | 213 const std::vector<QuicPingFrame>& SimpleQuicFramer::ping_frames() const { |
| 211 return visitor_->ping_frames(); | 214 return visitor_->ping_frames(); |
| 212 } | 215 } |
| 213 | 216 |
| 217 const std::vector<QuicWindowUpdateFrame>& |
| 218 SimpleQuicFramer::window_update_frames() const { |
| 219 return visitor_->window_update_frames(); |
| 220 } |
| 221 |
| 214 const std::vector<std::unique_ptr<QuicStreamFrame>>& | 222 const std::vector<std::unique_ptr<QuicStreamFrame>>& |
| 215 SimpleQuicFramer::stream_frames() const { | 223 SimpleQuicFramer::stream_frames() const { |
| 216 return visitor_->stream_frames(); | 224 return visitor_->stream_frames(); |
| 217 } | 225 } |
| 218 | 226 |
| 219 const std::vector<QuicRstStreamFrame>& SimpleQuicFramer::rst_stream_frames() | 227 const std::vector<QuicRstStreamFrame>& SimpleQuicFramer::rst_stream_frames() |
| 220 const { | 228 const { |
| 221 return visitor_->rst_stream_frames(); | 229 return visitor_->rst_stream_frames(); |
| 222 } | 230 } |
| 223 | 231 |
| 224 const std::vector<QuicGoAwayFrame>& SimpleQuicFramer::goaway_frames() const { | 232 const std::vector<QuicGoAwayFrame>& SimpleQuicFramer::goaway_frames() const { |
| 225 return visitor_->goaway_frames(); | 233 return visitor_->goaway_frames(); |
| 226 } | 234 } |
| 227 | 235 |
| 228 const std::vector<QuicConnectionCloseFrame>& | 236 const std::vector<QuicConnectionCloseFrame>& |
| 229 SimpleQuicFramer::connection_close_frames() const { | 237 SimpleQuicFramer::connection_close_frames() const { |
| 230 return visitor_->connection_close_frames(); | 238 return visitor_->connection_close_frames(); |
| 231 } | 239 } |
| 232 | 240 |
| 233 const std::vector<QuicPaddingFrame>& SimpleQuicFramer::padding_frames() const { | 241 const std::vector<QuicPaddingFrame>& SimpleQuicFramer::padding_frames() const { |
| 234 return visitor_->padding_frames(); | 242 return visitor_->padding_frames(); |
| 235 } | 243 } |
| 236 | 244 |
| 237 } // namespace test | 245 } // namespace test |
| 238 } // namespace net | 246 } // namespace net |
| OLD | NEW |