| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 <memory> | 5 #include <memory> |
| 6 #include <ostream> | 6 #include <ostream> |
| 7 #include <utility> | 7 #include <utility> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 cert_transparency_verifier_(new MultiLogCTVerifier()), | 102 cert_transparency_verifier_(new MultiLogCTVerifier()), |
| 103 ssl_config_service_(new SSLConfigServiceDefaults), | 103 ssl_config_service_(new SSLConfigServiceDefaults), |
| 104 proxy_service_(ProxyService::CreateDirect()), | 104 proxy_service_(ProxyService::CreateDirect()), |
| 105 auth_handler_factory_( | 105 auth_handler_factory_( |
| 106 HttpAuthHandlerFactory::CreateDefault(&host_resolver_)), | 106 HttpAuthHandlerFactory::CreateDefault(&host_resolver_)), |
| 107 strike_register_no_startup_period_(false) { | 107 strike_register_no_startup_period_(false) { |
| 108 request_.method = "GET"; | 108 request_.method = "GET"; |
| 109 request_.url = GURL("https://test.example.com/"); | 109 request_.url = GURL("https://test.example.com/"); |
| 110 request_.load_flags = 0; | 110 request_.load_flags = 0; |
| 111 | 111 |
| 112 params_.enable_quic = true; | 112 dynamic_shared_params_.enable_quic = true; |
| 113 params_.dynamic_shared_params = &dynamic_shared_params_; |
| 113 params_.quic_clock = nullptr; | 114 params_.quic_clock = nullptr; |
| 114 params_.quic_random = nullptr; | 115 params_.quic_random = nullptr; |
| 115 if (GetParam().use_stateless_rejects) { | 116 if (GetParam().use_stateless_rejects) { |
| 116 params_.quic_connection_options.push_back(kSREJ); | 117 params_.quic_connection_options.push_back(kSREJ); |
| 117 } | 118 } |
| 118 params_.host_resolver = &host_resolver_; | 119 params_.host_resolver = &host_resolver_; |
| 119 params_.cert_verifier = &cert_verifier_; | 120 params_.cert_verifier = &cert_verifier_; |
| 120 params_.transport_security_state = &transport_security_state_; | 121 params_.transport_security_state = &transport_security_state_; |
| 121 params_.cert_transparency_verifier = cert_transparency_verifier_.get(); | 122 params_.cert_transparency_verifier = cert_transparency_verifier_.get(); |
| 122 params_.ct_policy_enforcer = &ct_policy_enforcer_; | 123 params_.ct_policy_enforcer = &ct_policy_enforcer_; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 MappedHostResolver host_resolver_; | 236 MappedHostResolver host_resolver_; |
| 236 MockCertVerifier cert_verifier_; | 237 MockCertVerifier cert_verifier_; |
| 237 std::unique_ptr<ChannelIDService> channel_id_service_; | 238 std::unique_ptr<ChannelIDService> channel_id_service_; |
| 238 TransportSecurityState transport_security_state_; | 239 TransportSecurityState transport_security_state_; |
| 239 std::unique_ptr<CTVerifier> cert_transparency_verifier_; | 240 std::unique_ptr<CTVerifier> cert_transparency_verifier_; |
| 240 CTPolicyEnforcer ct_policy_enforcer_; | 241 CTPolicyEnforcer ct_policy_enforcer_; |
| 241 scoped_refptr<SSLConfigServiceDefaults> ssl_config_service_; | 242 scoped_refptr<SSLConfigServiceDefaults> ssl_config_service_; |
| 242 std::unique_ptr<ProxyService> proxy_service_; | 243 std::unique_ptr<ProxyService> proxy_service_; |
| 243 std::unique_ptr<HttpAuthHandlerFactory> auth_handler_factory_; | 244 std::unique_ptr<HttpAuthHandlerFactory> auth_handler_factory_; |
| 244 HttpServerPropertiesImpl http_server_properties_; | 245 HttpServerPropertiesImpl http_server_properties_; |
| 246 HttpNetworkSession::DynamicSharedParams dynamic_shared_params_; |
| 245 HttpNetworkSession::Params params_; | 247 HttpNetworkSession::Params params_; |
| 246 std::unique_ptr<TestTransactionFactory> transaction_factory_; | 248 std::unique_ptr<TestTransactionFactory> transaction_factory_; |
| 247 HttpRequestInfo request_; | 249 HttpRequestInfo request_; |
| 248 std::string request_body_; | 250 std::string request_body_; |
| 249 std::unique_ptr<UploadDataStream> upload_data_stream_; | 251 std::unique_ptr<UploadDataStream> upload_data_stream_; |
| 250 std::unique_ptr<QuicSimpleServer> server_; | 252 std::unique_ptr<QuicSimpleServer> server_; |
| 251 QuicHttpResponseCache response_cache_; | 253 QuicHttpResponseCache response_cache_; |
| 252 IPEndPoint server_address_; | 254 IPEndPoint server_address_; |
| 253 std::string server_hostname_; | 255 std::string server_hostname_; |
| 254 QuicConfig server_config_; | 256 QuicConfig server_config_; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 | 361 |
| 360 // Will terminate when the last consumer completes. | 362 // Will terminate when the last consumer completes. |
| 361 base::RunLoop().Run(); | 363 base::RunLoop().Run(); |
| 362 | 364 |
| 363 for (const auto& consumer : consumers) | 365 for (const auto& consumer : consumers) |
| 364 CheckResponse(*consumer.get(), "HTTP/1.1 200", kResponseBody); | 366 CheckResponse(*consumer.get(), "HTTP/1.1 200", kResponseBody); |
| 365 } | 367 } |
| 366 | 368 |
| 367 } // namespace test | 369 } // namespace test |
| 368 } // namespace net | 370 } // namespace net |
| OLD | NEW |