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

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

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.h
diff --git a/content/public/test/fake_download_item.h b/content/public/test/fake_download_item.h
index b71ac93d0197aff93ab375d77d0c25b53bb358cc..e26f0d8c1872bb0dbaad31ec11aaeed0d268ab47 100644
--- a/content/public/test/fake_download_item.h
+++ b/content/public/test/fake_download_item.h
@@ -45,6 +45,9 @@ class FakeDownloadItem : public DownloadItem {
void SetURL(const GURL& url);
const GURL& GetURL() const override;
+ void SetUrlChain(const std::vector<GURL>& url_chain);
+ const std::vector<GURL>& GetUrlChain() const override;
+
void SetTargetFilePath(const base::FilePath& file_path);
const base::FilePath& GetTargetFilePath() const override;
@@ -89,7 +92,6 @@ class FakeDownloadItem : public DownloadItem {
bool IsTemporary() const override;
bool CanResume() const override;
bool IsDone() const override;
- const std::vector<GURL>& GetUrlChain() const override;
const GURL& GetReferrerUrl() const override;
const GURL& GetSiteUrl() const override;
const GURL& GetTabUrl() const override;
@@ -138,6 +140,7 @@ class FakeDownloadItem : public DownloadItem {
uint32_t id_ = 0;
std::string guid_;
GURL url_;
+ std::vector<GURL> url_chain_;
base::FilePath file_path_;
bool is_file_externally_removed_ = false;
base::Time start_time_;
@@ -154,7 +157,6 @@ class FakeDownloadItem : public DownloadItem {
// The members below are to be returned by methods, which return by reference.
std::string dummy_string;
- std::vector<GURL> dummy_url_vector;
GURL dummy_url;
base::FilePath dummy_file_path;

Powered by Google App Engine
This is Rietveld 408576698