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

Unified Diff: content/public/test/test_download_request_handler.cc

Issue 2835533002: Remove URLRequestJob::GetResponseCode implementations (Closed)
Patch Set: Created 3 years, 8 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 | « content/browser/webui/url_data_manager_backend.cc ('k') | net/url_request/url_request_test_job.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_download_request_handler.cc
diff --git a/content/public/test/test_download_request_handler.cc b/content/public/test/test_download_request_handler.cc
index 180f37f22ca89108f2ee2ad4076b183e35a7c511..ec8d81ce09ae8f8b139127c6944d02e64be994a4 100644
--- a/content/public/test/test_download_request_handler.cc
+++ b/content/public/test/test_download_request_handler.cc
@@ -109,7 +109,6 @@ class TestDownloadRequestHandler::PartialResponseJob
void GetResponseInfo(net::HttpResponseInfo* response_info) override;
int64_t GetTotalReceivedBytes() const override;
bool GetMimeType(std::string* mime_type) const override;
- int GetResponseCode() const override;
int ReadRawData(net::IOBuffer* buf, int buf_size) override;
private:
@@ -275,11 +274,6 @@ bool TestDownloadRequestHandler::PartialResponseJob::GetMimeType(
return !parameters_->content_type.empty();
}
-int TestDownloadRequestHandler::PartialResponseJob::GetResponseCode() const {
- return response_info_.headers.get() ? response_info_.headers->response_code()
- : 0;
-}
-
int TestDownloadRequestHandler::PartialResponseJob::ReadRawData(
net::IOBuffer* buf,
int buf_size) {
« no previous file with comments | « content/browser/webui/url_data_manager_backend.cc ('k') | net/url_request/url_request_test_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698