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

Side by Side Diff: net/quic/test_tools/simple_quic_framer.cc

Issue 2236463004: Rename QuicSupportedVersions to QuicAllSupportedVersions. Add QuicCurrentSupportedVersions which re… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@129437595
Patch Set: update more files outside net/ Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « net/quic/test_tools/quic_test_utils.cc ('k') | net/tools/quic/chlo_extractor_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_test_utils.cc ('k') | net/tools/quic/chlo_extractor_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698