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 "base/stl_util.h" | 10 #include "base/stl_util.h" |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 vector<QuicConnectionCloseFrame> connection_close_frames_; | 156 vector<QuicConnectionCloseFrame> connection_close_frames_; |
157 vector<QuicWindowUpdateFrame> window_update_frames_; | 157 vector<QuicWindowUpdateFrame> window_update_frames_; |
158 vector<QuicBlockedFrame> blocked_frames_; | 158 vector<QuicBlockedFrame> blocked_frames_; |
159 vector<QuicPathCloseFrame> path_close_frames_; | 159 vector<QuicPathCloseFrame> path_close_frames_; |
160 vector<string*> stream_data_; | 160 vector<string*> stream_data_; |
161 | 161 |
162 DISALLOW_COPY_AND_ASSIGN(SimpleFramerVisitor); | 162 DISALLOW_COPY_AND_ASSIGN(SimpleFramerVisitor); |
163 }; | 163 }; |
164 | 164 |
165 SimpleQuicFramer::SimpleQuicFramer() | 165 SimpleQuicFramer::SimpleQuicFramer() |
166 : framer_(QuicSupportedVersions(), | 166 : framer_(AllSupportedVersions(), |
167 QuicTime::Zero(), | 167 QuicTime::Zero(), |
168 Perspective::IS_SERVER) {} | 168 Perspective::IS_SERVER) {} |
169 | 169 |
170 SimpleQuicFramer::SimpleQuicFramer(const QuicVersionVector& supported_versions) | 170 SimpleQuicFramer::SimpleQuicFramer(const QuicVersionVector& supported_versions) |
171 : framer_(supported_versions, QuicTime::Zero(), Perspective::IS_SERVER) {} | 171 : framer_(supported_versions, QuicTime::Zero(), Perspective::IS_SERVER) {} |
172 | 172 |
173 SimpleQuicFramer::SimpleQuicFramer(const QuicVersionVector& supported_versions, | 173 SimpleQuicFramer::SimpleQuicFramer(const QuicVersionVector& supported_versions, |
174 Perspective perspective) | 174 Perspective perspective) |
175 : framer_(supported_versions, QuicTime::Zero(), perspective) {} | 175 : framer_(supported_versions, QuicTime::Zero(), perspective) {} |
176 | 176 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 return visitor_->goaway_frames(); | 231 return visitor_->goaway_frames(); |
232 } | 232 } |
233 | 233 |
234 const vector<QuicConnectionCloseFrame>& | 234 const vector<QuicConnectionCloseFrame>& |
235 SimpleQuicFramer::connection_close_frames() const { | 235 SimpleQuicFramer::connection_close_frames() const { |
236 return visitor_->connection_close_frames(); | 236 return visitor_->connection_close_frames(); |
237 } | 237 } |
238 | 238 |
239 } // namespace test | 239 } // namespace test |
240 } // namespace net | 240 } // namespace net |
OLD | NEW |