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

Unified Diff: net/url_request/url_request_test_job.cc

Issue 10534100: Decouple URLRequestJob from URLRequestContext; access NetworkDelegate as a contructor parameter. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merged with latest sync Created 8 years, 6 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_simple_job.cc ('k') | webkit/appcache/appcache_request_handler_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_test_job.cc
diff --git a/net/url_request/url_request_test_job.cc b/net/url_request/url_request_test_job.cc
index 94a6bf5a757f53a362ddc9f96acce490fe999982..9ec31fca6e77e8da9fae33caec03aa3358336dbf 100644
--- a/net/url_request/url_request_test_job.cc
+++ b/net/url_request/url_request_test_job.cc
@@ -16,6 +16,7 @@
#include "net/base/net_errors.h"
#include "net/http/http_response_headers.h"
#include "net/url_request/url_request.h"
+#include "net/url_request/url_request_context.h"
namespace net {
@@ -85,7 +86,7 @@ URLRequestJob* URLRequestTestJob::Factory(URLRequest* request,
}
URLRequestTestJob::URLRequestTestJob(URLRequest* request)
- : URLRequestJob(request),
+ : URLRequestJob(request, request->context()->network_delegate()),
auto_advance_(false),
stage_(WAITING),
offset_(0),
@@ -96,7 +97,7 @@ URLRequestTestJob::URLRequestTestJob(URLRequest* request)
URLRequestTestJob::URLRequestTestJob(URLRequest* request,
bool auto_advance)
- : URLRequestJob(request),
+ : URLRequestJob(request, request->context()->network_delegate()),
auto_advance_(auto_advance),
stage_(WAITING),
offset_(0),
@@ -109,7 +110,7 @@ URLRequestTestJob::URLRequestTestJob(URLRequest* request,
const std::string& response_headers,
const std::string& response_data,
bool auto_advance)
- : URLRequestJob(request),
+ : URLRequestJob(request, request->context()->network_delegate()),
auto_advance_(auto_advance),
stage_(WAITING),
response_headers_(new HttpResponseHeaders(response_headers)),
« no previous file with comments | « net/url_request/url_request_simple_job.cc ('k') | webkit/appcache/appcache_request_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698