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

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

Issue 2809953002: Make the download's response headers available in the DownloadItem (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
Index: content/public/test/fake_download_item.cc
diff --git a/content/public/test/fake_download_item.cc b/content/public/test/fake_download_item.cc
index 7e9fe03d9a1060c56acb05f0eddc043e8d5cb93f..ce0f6e3852324a221cf089a1f52b31622121c187 100644
--- a/content/public/test/fake_download_item.cc
+++ b/content/public/test/fake_download_item.cc
@@ -126,6 +126,14 @@ DownloadItem::DownloadState FakeDownloadItem::GetState() const {
return download_state_;
}
+void FakeDownloadItem::SetResponseCode(int response_code) {
+ response_code_ = response_code;
+}
+
+int FakeDownloadItem::GetResponseCode() const {
+ return response_code_;
+}
+
void FakeDownloadItem::SetMimeType(const std::string& mime_type) {
mime_type_ = mime_type;
}

Powered by Google App Engine
This is Rietveld 408576698