| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef NET_URL_REQUEST_URL_REQUEST_UNITTEST_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_UNITTEST_H_ |
| 6 #define NET_URL_REQUEST_URL_REQUEST_UNITTEST_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_UNITTEST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <stdlib.h> | 9 #include <stdlib.h> |
| 10 | 10 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 } | 154 } |
| 155 | 155 |
| 156 private: | 156 private: |
| 157 void Init() { | 157 void Init() { |
| 158 ftp_transaction_factory_ = new net::FtpNetworkLayer(host_resolver_); | 158 ftp_transaction_factory_ = new net::FtpNetworkLayer(host_resolver_); |
| 159 ssl_config_service_ = new net::SSLConfigServiceDefaults; | 159 ssl_config_service_ = new net::SSLConfigServiceDefaults; |
| 160 http_auth_handler_factory_ = net::HttpAuthHandlerFactory::CreateDefault( | 160 http_auth_handler_factory_ = net::HttpAuthHandlerFactory::CreateDefault( |
| 161 host_resolver_); | 161 host_resolver_); |
| 162 http_transaction_factory_ = new net::HttpCache( | 162 http_transaction_factory_ = new net::HttpCache( |
| 163 net::HttpNetworkLayer::CreateFactory(host_resolver_, | 163 net::HttpNetworkLayer::CreateFactory(host_resolver_, |
| 164 NULL, | 164 NULL /* dnsrr_resolver */, |
| 165 NULL /* ssl_host_info_factory */, |
| 165 proxy_service_, | 166 proxy_service_, |
| 166 ssl_config_service_, | 167 ssl_config_service_, |
| 167 http_auth_handler_factory_, | 168 http_auth_handler_factory_, |
| 168 network_delegate_, | 169 network_delegate_, |
| 169 NULL), | 170 NULL), |
| 170 net::HttpCache::DefaultBackend::InMemory(0)); | 171 net::HttpCache::DefaultBackend::InMemory(0)); |
| 171 // In-memory cookie store. | 172 // In-memory cookie store. |
| 172 cookie_store_ = new net::CookieMonster(NULL, NULL); | 173 cookie_store_ = new net::CookieMonster(NULL, NULL); |
| 173 accept_language_ = "en-us,fr"; | 174 accept_language_ = "en-us,fr"; |
| 174 accept_charset_ = "iso-8859-1,*,utf-8"; | 175 accept_charset_ = "iso-8859-1,*,utf-8"; |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 bool received_data_before_response_; | 388 bool received_data_before_response_; |
| 388 bool request_failed_; | 389 bool request_failed_; |
| 389 bool have_certificate_errors_; | 390 bool have_certificate_errors_; |
| 390 std::string data_received_; | 391 std::string data_received_; |
| 391 | 392 |
| 392 // our read buffer | 393 // our read buffer |
| 393 scoped_refptr<net::IOBuffer> buf_; | 394 scoped_refptr<net::IOBuffer> buf_; |
| 394 }; | 395 }; |
| 395 | 396 |
| 396 #endif // NET_URL_REQUEST_URL_REQUEST_UNITTEST_H_ | 397 #endif // NET_URL_REQUEST_URL_REQUEST_UNITTEST_H_ |
| OLD | NEW |