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

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

Issue 2796953003: Populate the response blob for finished Background Fetches (Closed)
Patch Set: Populate the response blob for finished Background Fetches 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 d9a333979dde71e0ac00d48818ac40dbba0d309d..7e9fe03d9a1060c56acb05f0eddc043e8d5cb93f 100644
--- a/content/public/test/fake_download_item.cc
+++ b/content/public/test/fake_download_item.cc
@@ -69,6 +69,14 @@ const GURL& FakeDownloadItem::GetURL() const {
return url_;
}
+void FakeDownloadItem::SetUrlChain(const std::vector<GURL>& url_chain) {
+ url_chain_ = url_chain;
+}
+
+const std::vector<GURL>& FakeDownloadItem::GetUrlChain() const {
+ return url_chain_;
+}
+
void FakeDownloadItem::SetLastReason(DownloadInterruptReason last_reason) {
last_reason_ = last_reason;
}
@@ -206,11 +214,6 @@ bool FakeDownloadItem::IsDone() const {
return true;
}
-const std::vector<GURL>& FakeDownloadItem::GetUrlChain() const {
- NOTREACHED();
- return dummy_url_vector;
-}
-
const GURL& FakeDownloadItem::GetReferrerUrl() const {
NOTREACHED();
return dummy_url;

Powered by Google App Engine
This is Rietveld 408576698