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

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

Issue 2672113002: Remove URLRequestJob::GetResponseCode implementations from some tests.
Patch Set: Created 3 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 | « content/browser/fileapi/file_writer_delegate_unittest.cc ('k') | no next file » | 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 c0f9525704855764b509283be42160281791ce74..bfa1fe073d431a58687d2d23472c200d832b782e 100644
--- a/content/public/test/test_download_request_handler.cc
+++ b/content/public/test/test_download_request_handler.cc
@@ -108,7 +108,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:
@@ -274,11 +273,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/fileapi/file_writer_delegate_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698