| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 clock_(new MockClock()), | 93 clock_(new MockClock()), |
| 94 cert_verifier_(CertVerifier::CreateDefault()), | 94 cert_verifier_(CertVerifier::CreateDefault()), |
| 95 channel_id_service_(new ChannelIDService( | 95 channel_id_service_(new ChannelIDService( |
| 96 new DefaultChannelIDStore(NULL), | 96 new DefaultChannelIDStore(NULL), |
| 97 base::MessageLoopProxy::current())), | 97 base::MessageLoopProxy::current())), |
| 98 factory_(&host_resolver_, &socket_factory_, | 98 factory_(&host_resolver_, &socket_factory_, |
| 99 base::WeakPtr<HttpServerProperties>(), cert_verifier_.get(), | 99 base::WeakPtr<HttpServerProperties>(), cert_verifier_.get(), |
| 100 channel_id_service_.get(), &transport_security_state_, | 100 channel_id_service_.get(), &transport_security_state_, |
| 101 &crypto_client_stream_factory_, &random_generator_, clock_, | 101 &crypto_client_stream_factory_, &random_generator_, clock_, |
| 102 kDefaultMaxPacketSize, std::string(), | 102 kDefaultMaxPacketSize, std::string(), |
| 103 SupportedVersions(GetParam()), true, true, true, | 103 SupportedVersions(GetParam()), true, true, QuicTagVector()), |
| 104 QuicTagVector()), | |
| 105 host_port_pair_(kDefaultServerHostName, kDefaultServerPort), | 104 host_port_pair_(kDefaultServerHostName, kDefaultServerPort), |
| 106 is_https_(false), | 105 is_https_(false), |
| 107 privacy_mode_(PRIVACY_MODE_DISABLED) { | 106 privacy_mode_(PRIVACY_MODE_DISABLED) { |
| 108 factory_.set_require_confirmation(false); | 107 factory_.set_require_confirmation(false); |
| 109 } | 108 } |
| 110 | 109 |
| 111 scoped_ptr<QuicHttpStream> CreateIfSessionExists( | 110 scoped_ptr<QuicHttpStream> CreateIfSessionExists( |
| 112 const HostPortPair& host_port_pair, | 111 const HostPortPair& host_port_pair, |
| 113 const BoundNetLog& net_log) { | 112 const BoundNetLog& net_log) { |
| 114 return QuicStreamFactoryPeer::CreateIfSessionExists( | 113 return QuicStreamFactoryPeer::CreateIfSessionExists( |
| (...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1151 QuicCryptoClientConfig::CachedState* cached2 = | 1150 QuicCryptoClientConfig::CachedState* cached2 = |
| 1152 crypto_config->LookupOrCreate(server_id2); | 1151 crypto_config->LookupOrCreate(server_id2); |
| 1153 EXPECT_NE(cached1->source_address_token(), cached2->source_address_token()); | 1152 EXPECT_NE(cached1->source_address_token(), cached2->source_address_token()); |
| 1154 EXPECT_TRUE(cached2->source_address_token().empty()); | 1153 EXPECT_TRUE(cached2->source_address_token().empty()); |
| 1155 EXPECT_FALSE(cached2->proof_valid()); | 1154 EXPECT_FALSE(cached2->proof_valid()); |
| 1156 } | 1155 } |
| 1157 } | 1156 } |
| 1158 | 1157 |
| 1159 } // namespace test | 1158 } // namespace test |
| 1160 } // namespace net | 1159 } // namespace net |
| OLD | NEW |