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

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

Issue 413403008: Remove QUIC_VERSION_15 now that Chrome Stable supports QUIC_VERSION_16. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0723
Patch Set: Created 6 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/quic_packet_creator_test.cc ('k') | net/quic/quic_protocol.h » ('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_generator.h" 5 #include "net/quic/quic_packet_generator.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "net/quic/crypto/crypto_protocol.h" 9 #include "net/quic/crypto/crypto_protocol.h"
10 #include "net/quic/crypto/null_encrypter.h" 10 #include "net/quic/crypto/null_encrypter.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 delete packet5_.packet; 129 delete packet5_.packet;
130 delete packet5_.retransmittable_frames; 130 delete packet5_.retransmittable_frames;
131 delete packet6_.packet; 131 delete packet6_.packet;
132 delete packet6_.retransmittable_frames; 132 delete packet6_.retransmittable_frames;
133 delete packet7_.packet; 133 delete packet7_.packet;
134 delete packet7_.retransmittable_frames; 134 delete packet7_.retransmittable_frames;
135 } 135 }
136 136
137 QuicAckFrame* CreateAckFrame() { 137 QuicAckFrame* CreateAckFrame() {
138 // TODO(rch): Initialize this so it can be verified later. 138 // TODO(rch): Initialize this so it can be verified later.
139 return new QuicAckFrame(MakeAckFrame(0, 0)); 139 return new QuicAckFrame(MakeAckFrame(0));
140 } 140 }
141 141
142 QuicCongestionFeedbackFrame* CreateFeedbackFrame() { 142 QuicCongestionFeedbackFrame* CreateFeedbackFrame() {
143 QuicCongestionFeedbackFrame* frame = new QuicCongestionFeedbackFrame; 143 QuicCongestionFeedbackFrame* frame = new QuicCongestionFeedbackFrame;
144 frame->type = kFixRate; 144 frame->type = kFixRate;
145 frame->fix_rate.bitrate = QuicBandwidth::FromBytesPerSecond(42); 145 frame->fix_rate.bitrate = QuicBandwidth::FromBytesPerSecond(42);
146 return frame; 146 return frame;
147 } 147 }
148 148
149 QuicStopWaitingFrame* CreateStopWaitingFrame() { 149 QuicStopWaitingFrame* CreateStopWaitingFrame() {
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 963
964 // The second should have the remainder of the stream data. 964 // The second should have the remainder of the stream data.
965 PacketContents contents2; 965 PacketContents contents2;
966 contents2.num_goaway_frames = 1; 966 contents2.num_goaway_frames = 1;
967 contents2.num_stream_frames = 1; 967 contents2.num_stream_frames = 1;
968 CheckPacketContains(contents2, packet2_); 968 CheckPacketContains(contents2, packet2_);
969 } 969 }
970 970
971 } // namespace test 971 } // namespace test
972 } // namespace net 972 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_packet_creator_test.cc ('k') | net/quic/quic_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698