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

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

Issue 325373002: Use override consistently instead of virtual. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « no previous file | net/quic/quic_packet_generator_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/quic_packet_creator.h" 5 #include "net/quic/quic_packet_creator.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "net/quic/crypto/null_encrypter.h" 8 #include "net/quic/crypto/null_encrypter.h"
9 #include "net/quic/crypto/quic_decrypter.h" 9 #include "net/quic/crypto/quic_decrypter.h"
10 #include "net/quic/crypto/quic_encrypter.h" 10 #include "net/quic/crypto/quic_encrypter.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 client_framer_(SupportedVersions(GetParam().version), QuicTime::Zero(), 66 client_framer_(SupportedVersions(GetParam().version), QuicTime::Zero(),
67 false), 67 false),
68 sequence_number_(0), 68 sequence_number_(0),
69 connection_id_(2), 69 connection_id_(2),
70 data_("foo"), 70 data_("foo"),
71 creator_(connection_id_, &client_framer_, &mock_random_, false) { 71 creator_(connection_id_, &client_framer_, &mock_random_, false) {
72 client_framer_.set_visitor(&framer_visitor_); 72 client_framer_.set_visitor(&framer_visitor_);
73 client_framer_.set_received_entropy_calculator(&entropy_calculator_); 73 client_framer_.set_received_entropy_calculator(&entropy_calculator_);
74 server_framer_.set_visitor(&framer_visitor_); 74 server_framer_.set_visitor(&framer_visitor_);
75 } 75 }
76 ~QuicPacketCreatorTest() { 76
77 virtual ~QuicPacketCreatorTest() OVERRIDE {
77 } 78 }
78 79
79 void ProcessPacket(QuicPacket* packet) { 80 void ProcessPacket(QuicPacket* packet) {
80 scoped_ptr<QuicEncryptedPacket> encrypted( 81 scoped_ptr<QuicEncryptedPacket> encrypted(
81 server_framer_.EncryptPacket(ENCRYPTION_NONE, sequence_number_, 82 server_framer_.EncryptPacket(ENCRYPTION_NONE, sequence_number_,
82 *packet)); 83 *packet));
83 server_framer_.ProcessPacket(*encrypted); 84 server_framer_.ProcessPacket(*encrypted);
84 } 85 }
85 86
86 void CheckStreamFrame(const QuicFrame& frame, 87 void CheckStreamFrame(const QuicFrame& frame,
(...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after
1009 // After 64 calls, BoolSource will refresh the bucket - make sure it does. 1010 // After 64 calls, BoolSource will refresh the bucket - make sure it does.
1010 mock_random_.ChangeValue(); 1011 mock_random_.ChangeValue();
1011 } 1012 }
1012 1013
1013 delete frames_[0].stream_frame; 1014 delete frames_[0].stream_frame;
1014 } 1015 }
1015 1016
1016 } // namespace 1017 } // namespace
1017 } // namespace test 1018 } // namespace test
1018 } // namespace net 1019 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_packet_generator_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698