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

Unified Diff: net/url_request/url_request_unittest.h

Issue 21158: Fix a logic error in the handling the response to an HTTP... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_unittest.h
===================================================================
--- net/url_request/url_request_unittest.h (revision 9548)
+++ net/url_request/url_request_unittest.h (working copy)
@@ -45,6 +45,14 @@
net::HttpNetworkLayer::CreateFactory(proxy_service_);
}
+ explicit TestURLRequestContext(const std::string& proxy) {
+ net::ProxyInfo proxy_info;
+ proxy_info.UseNamedProxy(proxy);
+ proxy_service_ = net::ProxyService::Create(&proxy_info);
+ http_transaction_factory_ =
+ net::HttpNetworkLayer::CreateFactory(proxy_service_);
+ }
+
virtual ~TestURLRequestContext() {
delete http_transaction_factory_;
delete proxy_service_;
@@ -355,7 +363,6 @@
#endif
if (!normalized_document_root.empty())
file_util::AppendToPath(test_data_directory, normalized_document_root);
-
data_directory_ = *test_data_directory;
}
@@ -482,7 +489,7 @@
{
MessageLoop* loop = loop_;
scoped_ptr<base::Thread> io_thread;
-
+
if (!loop) {
io_thread.reset(new base::Thread("MakeGETRequest"));
base::Thread::Options options;
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698