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

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

Issue 12813004: Chromium style checker cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 9 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
« no previous file with comments | « net/quic/quic_crypto_server_stream_test.cc ('k') | net/quic/test_tools/simple_quic_framer.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 <algorithm> 5 #include <algorithm>
6 #include <map> 6 #include <map>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/hash_tables.h" 10 #include "base/hash_tables.h"
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 218
219 virtual void OnRstStreamFrame(const QuicRstStreamFrame& frame) OVERRIDE { 219 virtual void OnRstStreamFrame(const QuicRstStreamFrame& frame) OVERRIDE {
220 rst_stream_frame_ = frame; 220 rst_stream_frame_ = frame;
221 } 221 }
222 222
223 virtual void OnConnectionCloseFrame( 223 virtual void OnConnectionCloseFrame(
224 const QuicConnectionCloseFrame& frame) OVERRIDE { 224 const QuicConnectionCloseFrame& frame) OVERRIDE {
225 connection_close_frame_ = frame; 225 connection_close_frame_ = frame;
226 } 226 }
227 227
228 virtual void OnGoAwayFrame(const QuicGoAwayFrame& frame) { 228 virtual void OnGoAwayFrame(const QuicGoAwayFrame& frame) OVERRIDE {
229 goaway_frame_ = frame; 229 goaway_frame_ = frame;
230 } 230 }
231 231
232 // Counters from the visitor_ callbacks. 232 // Counters from the visitor_ callbacks.
233 int error_count_; 233 int error_count_;
234 int packet_count_; 234 int packet_count_;
235 int frame_count_; 235 int frame_count_;
236 int fec_count_; 236 int fec_count_;
237 int complete_packets_; 237 int complete_packets_;
238 int revived_packets_; 238 int revived_packets_;
(...skipping 2449 matching lines...) Expand 10 before | Expand all | Expand 10 after
2688 EXPECT_EQ(QUIC_NO_ERROR, framer_.error()); 2688 EXPECT_EQ(QUIC_NO_ERROR, framer_.error());
2689 ASSERT_TRUE(visitor_.header_.get()); 2689 ASSERT_TRUE(visitor_.header_.get());
2690 EXPECT_TRUE(visitor_.header_->fec_flag); 2690 EXPECT_TRUE(visitor_.header_->fec_flag);
2691 EXPECT_TRUE(visitor_.header_->entropy_flag); 2691 EXPECT_TRUE(visitor_.header_->entropy_flag);
2692 EXPECT_TRUE(visitor_.header_->fec_entropy_flag); 2692 EXPECT_TRUE(visitor_.header_->fec_entropy_flag);
2693 EXPECT_EQ(1 << 4, visitor_.header_->entropy_hash); 2693 EXPECT_EQ(1 << 4, visitor_.header_->entropy_hash);
2694 }; 2694 };
2695 2695
2696 } // namespace test 2696 } // namespace test
2697 } // namespace net 2697 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_crypto_server_stream_test.cc ('k') | net/quic/test_tools/simple_quic_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698