OLD | NEW |
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_stream_factory.h" | 5 #include "net/quic/quic_stream_factory.h" |
6 | 6 |
7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "net/base/test_data_directory.h" | 9 #include "net/base/test_data_directory.h" |
10 #include "net/cert/cert_verifier.h" | 10 #include "net/cert/cert_verifier.h" |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 cert_verifier_.get(), | 106 cert_verifier_.get(), |
107 channel_id_service_.get(), | 107 channel_id_service_.get(), |
108 &transport_security_state_, | 108 &transport_security_state_, |
109 &crypto_client_stream_factory_, | 109 &crypto_client_stream_factory_, |
110 &random_generator_, | 110 &random_generator_, |
111 clock_, | 111 clock_, |
112 kDefaultMaxPacketSize, | 112 kDefaultMaxPacketSize, |
113 std::string(), | 113 std::string(), |
114 SupportedVersions(GetParam()), | 114 SupportedVersions(GetParam()), |
115 /*enable_port_selection=*/true, | 115 /*enable_port_selection=*/true, |
116 /*enable_time_based_loss_detection=*/true, | |
117 /*always_require_handshake_confirmation=*/false, | 116 /*always_require_handshake_confirmation=*/false, |
118 /*disable_connection_pooling=*/false, | 117 /*disable_connection_pooling=*/false, |
119 QuicTagVector()), | 118 QuicTagVector()), |
120 host_port_pair_(kDefaultServerHostName, kDefaultServerPort), | 119 host_port_pair_(kDefaultServerHostName, kDefaultServerPort), |
121 is_https_(false), | 120 is_https_(false), |
122 privacy_mode_(PRIVACY_MODE_DISABLED) { | 121 privacy_mode_(PRIVACY_MODE_DISABLED) { |
123 factory_.set_require_confirmation(false); | 122 factory_.set_require_confirmation(false); |
124 clock_->AdvanceTime(QuicTime::Delta::FromSeconds(1)); | 123 clock_->AdvanceTime(QuicTime::Delta::FromSeconds(1)); |
125 } | 124 } |
126 | 125 |
(...skipping 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1505 QuicCryptoClientConfig::CachedState* cached2 = | 1504 QuicCryptoClientConfig::CachedState* cached2 = |
1506 crypto_config->LookupOrCreate(server_id2); | 1505 crypto_config->LookupOrCreate(server_id2); |
1507 EXPECT_NE(cached1->source_address_token(), cached2->source_address_token()); | 1506 EXPECT_NE(cached1->source_address_token(), cached2->source_address_token()); |
1508 EXPECT_TRUE(cached2->source_address_token().empty()); | 1507 EXPECT_TRUE(cached2->source_address_token().empty()); |
1509 EXPECT_FALSE(cached2->proof_valid()); | 1508 EXPECT_FALSE(cached2->proof_valid()); |
1510 } | 1509 } |
1511 } | 1510 } |
1512 | 1511 |
1513 } // namespace test | 1512 } // namespace test |
1514 } // namespace net | 1513 } // namespace net |
OLD | NEW |