| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 <algorithm> | 5 #include <algorithm> |
| 6 #include <cstdint> | 6 #include <cstdint> |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <ostream> | 8 #include <ostream> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 const char kOldConfigId[] = "old-config-id"; | 55 const char kOldConfigId[] = "old-config-id"; |
| 56 | 56 |
| 57 } // namespace | 57 } // namespace |
| 58 | 58 |
| 59 struct TestParams { | 59 struct TestParams { |
| 60 TestParams(bool enable_stateless_rejects, | 60 TestParams(bool enable_stateless_rejects, |
| 61 bool use_stateless_rejects, | 61 bool use_stateless_rejects, |
| 62 QuicVersionVector supported_versions) | 62 QuicVersionVector supported_versions) |
| 63 : enable_stateless_rejects(enable_stateless_rejects), | 63 : enable_stateless_rejects(enable_stateless_rejects), |
| 64 use_stateless_rejects(use_stateless_rejects), | 64 use_stateless_rejects(use_stateless_rejects), |
| 65 supported_versions(supported_versions) {} | 65 supported_versions(std::move(supported_versions)) {} |
| 66 | 66 |
| 67 friend ostream& operator<<(ostream& os, const TestParams& p) { | 67 friend ostream& operator<<(ostream& os, const TestParams& p) { |
| 68 os << " enable_stateless_rejects: " << p.enable_stateless_rejects | 68 os << " enable_stateless_rejects: " << p.enable_stateless_rejects |
| 69 << std::endl; | 69 << std::endl; |
| 70 os << " use_stateless_rejects: " << p.use_stateless_rejects << std::endl; | 70 os << " use_stateless_rejects: " << p.use_stateless_rejects << std::endl; |
| 71 os << " versions: " << QuicVersionVectorToString(p.supported_versions) | 71 os << " versions: " << QuicVersionVectorToString(p.supported_versions) |
| 72 << " }"; | 72 << " }"; |
| 73 return os; | 73 return os; |
| 74 } | 74 } |
| 75 | 75 |
| (...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1244 EXPECT_EQ(0, strike_register_client_->PendingVerifications()); | 1244 EXPECT_EQ(0, strike_register_client_->PendingVerifications()); |
| 1245 } else { | 1245 } else { |
| 1246 // version 33. | 1246 // version 33. |
| 1247 ASSERT_EQ(kSHLO, out_.tag()); | 1247 ASSERT_EQ(kSHLO, out_.tag()); |
| 1248 CheckServerHello(out_); | 1248 CheckServerHello(out_); |
| 1249 } | 1249 } |
| 1250 } | 1250 } |
| 1251 | 1251 |
| 1252 } // namespace test | 1252 } // namespace test |
| 1253 } // namespace net | 1253 } // namespace net |
| OLD | NEW |