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