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

Side by Side Diff: net/quic/core/quic_framer_test.cc

Issue 2517513004: Move QUIC error code utility methods to quic_error_codes.{h,cc}, and rename them slightly. No beha… (Closed)
Patch Set: Created 4 years, 1 month 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/core/quic_framer.cc ('k') | net/quic/core/quic_stream_sequencer.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/core/quic_framer.h" 5 #include "net/quic/core/quic_framer.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <map> 10 #include <map>
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 version_mismatch_(0), 192 version_mismatch_(0),
193 packet_count_(0), 193 packet_count_(0),
194 frame_count_(0), 194 frame_count_(0),
195 complete_packets_(0), 195 complete_packets_(0),
196 accept_packet_(true), 196 accept_packet_(true),
197 accept_public_header_(true) {} 197 accept_public_header_(true) {}
198 198
199 ~TestQuicVisitor() override {} 199 ~TestQuicVisitor() override {}
200 200
201 void OnError(QuicFramer* f) override { 201 void OnError(QuicFramer* f) override {
202 DVLOG(1) << "QuicFramer Error: " << QuicUtils::ErrorToString(f->error()) 202 DVLOG(1) << "QuicFramer Error: " << QuicErrorCodeToString(f->error())
203 << " (" << f->error() << ")"; 203 << " (" << f->error() << ")";
204 ++error_count_; 204 ++error_count_;
205 } 205 }
206 206
207 void OnPacket() override {} 207 void OnPacket() override {}
208 208
209 void OnPublicResetPacket(const QuicPublicResetPacket& packet) override { 209 void OnPublicResetPacket(const QuicPublicResetPacket& packet) override {
210 public_reset_packet_.reset(new QuicPublicResetPacket(packet)); 210 public_reset_packet_.reset(new QuicPublicResetPacket(packet));
211 } 211 }
212 212
(...skipping 4010 matching lines...) Expand 10 before | Expand all | Expand 10 after
4223 'o', ' ', 'w', 'o', 4223 'o', ' ', 'w', 'o',
4224 'r', 'l', 'd', '!', 4224 'r', 'l', 'd', '!',
4225 }; 4225 };
4226 // clang-format on 4226 // clang-format on
4227 4227
4228 QuicFramerFuzzFunc(packet, arraysize(packet)); 4228 QuicFramerFuzzFunc(packet, arraysize(packet));
4229 } 4229 }
4230 4230
4231 } // namespace test 4231 } // namespace test
4232 } // namespace net 4232 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_framer.cc ('k') | net/quic/core/quic_stream_sequencer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698