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 | 7 |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 | 9 |
10 #include <sstream> | 10 #include <sstream> |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 private: | 158 private: |
159 void Init() { | 159 void Init() { |
160 ftp_transaction_factory_ = new net::FtpNetworkLayer(host_resolver_); | 160 ftp_transaction_factory_ = new net::FtpNetworkLayer(host_resolver_); |
161 ssl_config_service_ = new net::SSLConfigServiceDefaults; | 161 ssl_config_service_ = new net::SSLConfigServiceDefaults; |
162 http_auth_handler_factory_ = net::HttpAuthHandlerFactory::CreateDefault(); | 162 http_auth_handler_factory_ = net::HttpAuthHandlerFactory::CreateDefault(); |
163 http_transaction_factory_ = | 163 http_transaction_factory_ = |
164 new net::HttpCache( | 164 new net::HttpCache( |
165 net::HttpNetworkLayer::CreateFactory(NULL, host_resolver_, | 165 net::HttpNetworkLayer::CreateFactory(NULL, host_resolver_, |
166 proxy_service_, | 166 proxy_service_, |
167 ssl_config_service_, | 167 ssl_config_service_, |
168 http_auth_handler_factory_), | 168 http_auth_handler_factory_, |
| 169 NULL), |
169 net::HttpCache::DefaultBackend::InMemory(0)); | 170 net::HttpCache::DefaultBackend::InMemory(0)); |
170 // In-memory cookie store. | 171 // In-memory cookie store. |
171 cookie_store_ = new net::CookieMonster(NULL, NULL); | 172 cookie_store_ = new net::CookieMonster(NULL, NULL); |
172 accept_language_ = "en-us,fr"; | 173 accept_language_ = "en-us,fr"; |
173 accept_charset_ = "iso-8859-1,*,utf-8"; | 174 accept_charset_ = "iso-8859-1,*,utf-8"; |
174 } | 175 } |
175 }; | 176 }; |
176 | 177 |
177 //----------------------------------------------------------------------------- | 178 //----------------------------------------------------------------------------- |
178 | 179 |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
750 return false; | 751 return false; |
751 | 752 |
752 return true; | 753 return true; |
753 } | 754 } |
754 | 755 |
755 private: | 756 private: |
756 ~FTPTestServer() {} | 757 ~FTPTestServer() {} |
757 }; | 758 }; |
758 | 759 |
759 #endif // NET_URL_REQUEST_URL_REQUEST_UNITTEST_H_ | 760 #endif // NET_URL_REQUEST_URL_REQUEST_UNITTEST_H_ |
OLD | NEW |