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

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

Issue 4067002: First pass at adding http/backend cache to NetLog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Add back mysteriously missing files Created 10 years 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
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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 net::HttpCache::DefaultBackend::InMemory(0)); 172 net::HttpCache::DefaultBackend::InMemory(0),
173 NULL);
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
182 class TestURLRequest : public net::URLRequest { 183 class TestURLRequest : public net::URLRequest {
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698