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