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 /* dnsrr_resolver */, | 164 NULL, |
165 NULL /* ssl_host_info_factory */, | |
166 proxy_service_, | 165 proxy_service_, |
167 ssl_config_service_, | 166 ssl_config_service_, |
168 http_auth_handler_factory_, | 167 http_auth_handler_factory_, |
169 network_delegate_, | 168 network_delegate_, |
170 NULL), | 169 NULL), |
171 net::HttpCache::DefaultBackend::InMemory(0)); | 170 net::HttpCache::DefaultBackend::InMemory(0)); |
172 // In-memory cookie store. | 171 // In-memory cookie store. |
173 cookie_store_ = new net::CookieMonster(NULL, NULL); | 172 cookie_store_ = new net::CookieMonster(NULL, NULL); |
174 accept_language_ = "en-us,fr"; | 173 accept_language_ = "en-us,fr"; |
175 accept_charset_ = "iso-8859-1,*,utf-8"; | 174 accept_charset_ = "iso-8859-1,*,utf-8"; |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 bool received_data_before_response_; | 387 bool received_data_before_response_; |
389 bool request_failed_; | 388 bool request_failed_; |
390 bool have_certificate_errors_; | 389 bool have_certificate_errors_; |
391 std::string data_received_; | 390 std::string data_received_; |
392 | 391 |
393 // our read buffer | 392 // our read buffer |
394 scoped_refptr<net::IOBuffer> buf_; | 393 scoped_refptr<net::IOBuffer> buf_; |
395 }; | 394 }; |
396 | 395 |
397 #endif // NET_URL_REQUEST_URL_REQUEST_UNITTEST_H_ | 396 #endif // NET_URL_REQUEST_URL_REQUEST_UNITTEST_H_ |
OLD | NEW |