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

Unified Diff: net/url_request/url_request_job_tracker_unittest.cc

Issue 6674042: Make URLRequestHttpJob the only URLRequestJob concerned with FilterContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Responded to comments from willchan Created 9 years, 9 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
« net/base/filter.cc ('K') | « net/url_request/url_request_job.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_job_tracker_unittest.cc
diff --git a/net/url_request/url_request_job_tracker_unittest.cc b/net/url_request/url_request_job_tracker_unittest.cc
index 3ea429bdf4f8d30fd1c6f5de1ba3f091c467a02d..d29f2d3b94dba5fc1239bc82eaa42c3c55d1beea 100644
--- a/net/url_request/url_request_job_tracker_unittest.cc
+++ b/net/url_request/url_request_job_tracker_unittest.cc
@@ -118,16 +118,9 @@ class URLRequestJobTrackerTestJob : public URLRequestJob {
NotifyReadComplete(status);
}
- bool GetContentEncodings(
- std::vector<Filter::FilterType>* encoding_types) {
- if (request_->url().spec() == "test:basic") {
- return false;
- } else if (request_->url().spec() == "test:compressed") {
- encoding_types->push_back(Filter::FILTER_TYPE_GZIP);
- return true;
- } else {
- return URLRequestJob::GetContentEncodings(encoding_types);
- }
+ Filter* SetupFilter() const {
+ return request_->url().spec() == "test:compressed"
+ ? Filter::GZipFactory() : NULL;
}
// The data to send, will be set in Start().
« net/base/filter.cc ('K') | « net/url_request/url_request_job.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698