Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Side by Side Diff: net/url_request/url_request_unittest.h

Issue 3846005: Revert 62918 - net: clean up SSLHostInfo construction.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/tools/fetch/fetch_client.cc ('k') | remoting/jingle_glue/ssl_socket_adapter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/tools/fetch/fetch_client.cc ('k') | remoting/jingle_glue/ssl_socket_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698