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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 GetParam().use_stateless_rejects; | 355 GetParam().use_stateless_rejects; |
356 } | 356 } |
357 | 357 |
358 string XlctHexString() { | 358 string XlctHexString() { |
359 uint64_t xlct = CryptoTestUtils::LeafCertHashForTesting(); | 359 uint64_t xlct = CryptoTestUtils::LeafCertHashForTesting(); |
360 return "#" + | 360 return "#" + |
361 QuicUtils::HexEncode(reinterpret_cast<char*>(&xlct), sizeof(xlct)); | 361 QuicUtils::HexEncode(reinterpret_cast<char*>(&xlct), sizeof(xlct)); |
362 } | 362 } |
363 | 363 |
364 protected: | 364 protected: |
| 365 QuicFlagSaver flags_; // Save/restore all QUIC flag values. |
365 QuicRandom* const rand_; | 366 QuicRandom* const rand_; |
366 MockRandom rand_for_id_generation_; | 367 MockRandom rand_for_id_generation_; |
367 MockClock clock_; | 368 MockClock clock_; |
368 IPEndPoint client_address_; | 369 IPEndPoint client_address_; |
369 QuicVersionVector supported_versions_; | 370 QuicVersionVector supported_versions_; |
370 QuicVersion client_version_; | 371 QuicVersion client_version_; |
371 string client_version_string_; | 372 string client_version_string_; |
372 QuicCryptoServerConfig config_; | 373 QuicCryptoServerConfig config_; |
373 QuicCompressedCertsCache compressed_certs_cache_; | 374 QuicCompressedCertsCache compressed_certs_cache_; |
374 QuicCryptoServerConfig::ConfigOptions config_options_; | 375 QuicCryptoServerConfig::ConfigOptions config_options_; |
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1243 EXPECT_EQ(0, strike_register_client_->PendingVerifications()); | 1244 EXPECT_EQ(0, strike_register_client_->PendingVerifications()); |
1244 } else { | 1245 } else { |
1245 // version 33. | 1246 // version 33. |
1246 ASSERT_EQ(kSHLO, out_.tag()); | 1247 ASSERT_EQ(kSHLO, out_.tag()); |
1247 CheckServerHello(out_); | 1248 CheckServerHello(out_); |
1248 } | 1249 } |
1249 } | 1250 } |
1250 | 1251 |
1251 } // namespace test | 1252 } // namespace test |
1252 } // namespace net | 1253 } // namespace net |
OLD | NEW |