OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/url_request/url_request_test_util.h" | 5 #include "net/url_request/url_request_test_util.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 context_storage_.set_http_auth_handler_factory( | 116 context_storage_.set_http_auth_handler_factory( |
117 net::HttpAuthHandlerFactory::CreateDefault(host_resolver())); | 117 net::HttpAuthHandlerFactory::CreateDefault(host_resolver())); |
118 } | 118 } |
119 net::HttpNetworkSession::Params params; | 119 net::HttpNetworkSession::Params params; |
120 params.host_resolver = host_resolver(); | 120 params.host_resolver = host_resolver(); |
121 params.cert_verifier = cert_verifier(); | 121 params.cert_verifier = cert_verifier(); |
122 params.proxy_service = proxy_service(); | 122 params.proxy_service = proxy_service(); |
123 params.ssl_config_service = ssl_config_service(); | 123 params.ssl_config_service = ssl_config_service(); |
124 params.http_auth_handler_factory = http_auth_handler_factory(); | 124 params.http_auth_handler_factory = http_auth_handler_factory(); |
125 params.network_delegate = network_delegate(); | 125 params.network_delegate = network_delegate(); |
| 126 params.http_server_properties = http_server_properties(); |
126 | 127 |
127 if (!http_transaction_factory()) { | 128 if (!http_transaction_factory()) { |
128 context_storage_.set_http_transaction_factory(new net::HttpCache( | 129 context_storage_.set_http_transaction_factory(new net::HttpCache( |
129 new net::HttpNetworkSession(params), | 130 new net::HttpNetworkSession(params), |
130 net::HttpCache::DefaultBackend::InMemory(0))); | 131 net::HttpCache::DefaultBackend::InMemory(0))); |
131 } | 132 } |
132 // In-memory cookie store. | 133 // In-memory cookie store. |
133 if (!cookie_store()) | 134 if (!cookie_store()) |
134 context_storage_.set_cookie_store(new net::CookieMonster(NULL, NULL)); | 135 context_storage_.set_cookie_store(new net::CookieMonster(NULL, NULL)); |
135 if (accept_language().empty()) | 136 if (accept_language().empty()) |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 } | 455 } |
455 | 456 |
456 void TestNetworkDelegate::OnPACScriptError(int line_number, | 457 void TestNetworkDelegate::OnPACScriptError(int line_number, |
457 const string16& error) { | 458 const string16& error) { |
458 } | 459 } |
459 | 460 |
460 void TestNetworkDelegate::OnAuthRequired( | 461 void TestNetworkDelegate::OnAuthRequired( |
461 net::URLRequest* reqest, | 462 net::URLRequest* reqest, |
462 const net::AuthChallengeInfo& auth_info) { | 463 const net::AuthChallengeInfo& auth_info) { |
463 } | 464 } |
OLD | NEW |