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