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

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

Issue 2464683002: adds std:: to stl types (#049) (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
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_packet_creator.h" 5 #include "net/quic/core/quic_packet_creator.h"
6 6
7 #include <cstdint> 7 #include <cstdint>
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 << " include version: " << p.version_serialization << " }"; 53 << " include version: " << p.version_serialization << " }";
54 return os; 54 return os;
55 } 55 }
56 56
57 QuicVersion version; 57 QuicVersion version;
58 QuicConnectionIdLength connection_id_length; 58 QuicConnectionIdLength connection_id_length;
59 bool version_serialization; 59 bool version_serialization;
60 }; 60 };
61 61
62 // Constructs various test permutations. 62 // Constructs various test permutations.
63 vector<TestParams> GetTestParams() { 63 std::vector<TestParams> GetTestParams() {
64 vector<TestParams> params; 64 std::vector<TestParams> params;
65 constexpr QuicConnectionIdLength kMax = PACKET_8BYTE_CONNECTION_ID; 65 constexpr QuicConnectionIdLength kMax = PACKET_8BYTE_CONNECTION_ID;
66 QuicVersionVector all_supported_versions = AllSupportedVersions(); 66 QuicVersionVector all_supported_versions = AllSupportedVersions();
67 for (size_t i = 0; i < all_supported_versions.size(); ++i) { 67 for (size_t i = 0; i < all_supported_versions.size(); ++i) {
68 params.push_back(TestParams(all_supported_versions[i], true, kMax)); 68 params.push_back(TestParams(all_supported_versions[i], true, kMax));
69 params.push_back(TestParams(all_supported_versions[i], false, kMax)); 69 params.push_back(TestParams(all_supported_versions[i], false, kMax));
70 } 70 }
71 params.push_back( 71 params.push_back(
72 TestParams(all_supported_versions[0], true, PACKET_0BYTE_CONNECTION_ID)); 72 TestParams(all_supported_versions[0], true, PACKET_0BYTE_CONNECTION_ID));
73 params.push_back(TestParams(all_supported_versions[0], true, kMax)); 73 params.push_back(TestParams(all_supported_versions[0], true, kMax));
74 return params; 74 return params;
(...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 EXPECT_CALL(delegate_, 1066 EXPECT_CALL(delegate_,
1067 OnUnrecoverableError(QUIC_CRYPTO_CHLO_TOO_LARGE, _, _)); 1067 OnUnrecoverableError(QUIC_CRYPTO_CHLO_TOO_LARGE, _, _));
1068 EXPECT_QUIC_BUG(creator_.ConsumeData(kCryptoStreamId, data_iovec, 0u, 0u, 1068 EXPECT_QUIC_BUG(creator_.ConsumeData(kCryptoStreamId, data_iovec, 0u, 0u,
1069 false, false, &frame), 1069 false, false, &frame),
1070 "Client hello won't fit in a single packet."); 1070 "Client hello won't fit in a single packet.");
1071 } 1071 }
1072 1072
1073 } // namespace 1073 } // namespace
1074 } // namespace test 1074 } // namespace test
1075 } // namespace net 1075 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698