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

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

Issue 15018013: Revert 198736 "Land Recent QUIC changes" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
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 "net/quic/crypto/crypto_framer.h" 7 #include "net/quic/crypto/crypto_framer.h"
8 #include "net/quic/crypto/quic_decrypter.h" 8 #include "net/quic/crypto/quic_decrypter.h"
9 #include "net/quic/crypto/quic_encrypter.h" 9 #include "net/quic/crypto/quic_encrypter.h"
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 vector<QuicStreamFrame> stream_frames_; 121 vector<QuicStreamFrame> stream_frames_;
122 vector<QuicRstStreamFrame> rst_stream_frames_; 122 vector<QuicRstStreamFrame> rst_stream_frames_;
123 vector<QuicGoAwayFrame> goaway_frames_; 123 vector<QuicGoAwayFrame> goaway_frames_;
124 vector<QuicConnectionCloseFrame> connection_close_frames_; 124 vector<QuicConnectionCloseFrame> connection_close_frames_;
125 vector<string> stream_data_; 125 vector<string> stream_data_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(SimpleFramerVisitor); 127 DISALLOW_COPY_AND_ASSIGN(SimpleFramerVisitor);
128 }; 128 };
129 129
130 SimpleQuicFramer::SimpleQuicFramer() 130 SimpleQuicFramer::SimpleQuicFramer()
131 : framer_(kQuicVersion1, 131 : framer_(kQuicVersion1, QuicTime::Zero(), true),
132 QuicTime::Zero(), 132 visitor_(NULL) {
133 true) {
134 } 133 }
135 134
136 SimpleQuicFramer::~SimpleQuicFramer() { 135 SimpleQuicFramer::~SimpleQuicFramer() {
137 } 136 }
138 137
139 bool SimpleQuicFramer::ProcessPacket(const QuicPacket& packet) { 138 bool SimpleQuicFramer::ProcessPacket(const QuicPacket& packet) {
140 scoped_ptr<QuicEncryptedPacket> encrypted(framer_.EncryptPacket( 139 scoped_ptr<QuicEncryptedPacket> encrypted(framer_.EncryptPacket(
141 ENCRYPTION_NONE, 0, packet)); 140 ENCRYPTION_NONE, 0, packet));
142 return ProcessPacket(*encrypted); 141 return ProcessPacket(*encrypted);
143 } 142 }
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 return visitor_->goaway_frames(); 186 return visitor_->goaway_frames();
188 } 187 }
189 188
190 const vector<QuicConnectionCloseFrame>& 189 const vector<QuicConnectionCloseFrame>&
191 SimpleQuicFramer::connection_close_frames() const { 190 SimpleQuicFramer::connection_close_frames() const {
192 return visitor_->connection_close_frames(); 191 return visitor_->connection_close_frames();
193 } 192 }
194 193
195 } // namespace test 194 } // namespace test
196 } // namespace net 195 } // namespace net
OLDNEW
« no previous file with comments | « trunk/src/net/quic/test_tools/quic_test_utils.cc ('k') | trunk/src/net/tools/quic/quic_reliable_server_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698