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

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

Issue 2236973002: Landing Recent QUIC changes until 4AM, Aug 7, 2016 UTC-4 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: flip quic_sequencer_buffer_retire_block_in_time to true Created 4 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/core/quic_protocol_test.cc ('k') | net/quic/core/quic_sent_packet_manager.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_received_packet_manager.h" 5 #include "net/quic/core/quic_received_packet_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "net/quic/core/quic_connection_stats.h" 10 #include "net/quic/core/quic_connection_stats.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 friend std::ostream& operator<<(std::ostream& os, const TestParams& p) { 192 friend std::ostream& operator<<(std::ostream& os, const TestParams& p) {
193 os << "{ version: " << QuicVersionToString(p.version) << " }"; 193 os << "{ version: " << QuicVersionToString(p.version) << " }";
194 return os; 194 return os;
195 } 195 }
196 196
197 QuicVersion version; 197 QuicVersion version;
198 }; 198 };
199 199
200 vector<TestParams> GetTestParams() { 200 vector<TestParams> GetTestParams() {
201 vector<TestParams> params; 201 vector<TestParams> params;
202 QuicVersionVector all_supported_versions = QuicSupportedVersions(); 202 QuicVersionVector all_supported_versions = AllSupportedVersions();
203 for (size_t i = 0; i < all_supported_versions.size(); ++i) { 203 for (size_t i = 0; i < all_supported_versions.size(); ++i) {
204 params.push_back(TestParams(all_supported_versions[i])); 204 params.push_back(TestParams(all_supported_versions[i]));
205 } 205 }
206 return params; 206 return params;
207 } 207 }
208 208
209 class QuicReceivedPacketManagerTest 209 class QuicReceivedPacketManagerTest
210 : public ::testing::TestWithParam<TestParams> { 210 : public ::testing::TestWithParam<TestParams> {
211 protected: 211 protected:
212 QuicReceivedPacketManagerTest() : received_manager_(&stats_) { 212 QuicReceivedPacketManagerTest() : received_manager_(&stats_) {
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 QuicTime::Zero() + QuicTime::Delta::FromMilliseconds(1)); 387 QuicTime::Zero() + QuicTime::Delta::FromMilliseconds(1));
388 388
389 EXPECT_EQ(4u, stats_.max_sequence_reordering); 389 EXPECT_EQ(4u, stats_.max_sequence_reordering);
390 EXPECT_EQ(1000, stats_.max_time_reordering_us); 390 EXPECT_EQ(1000, stats_.max_time_reordering_us);
391 EXPECT_EQ(1u, stats_.packets_reordered); 391 EXPECT_EQ(1u, stats_.packets_reordered);
392 } 392 }
393 393
394 } // namespace 394 } // namespace
395 } // namespace test 395 } // namespace test
396 } // namespace net 396 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_protocol_test.cc ('k') | net/quic/core/quic_sent_packet_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698