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

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

Issue 2880933002: Download driver for components/download. (Closed)
Patch Set: Polish comment. Created 3 years, 7 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/public/browser/download_url_parameters.h ('k') | content/public/test/fake_download_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f2e230572ca0ea2657904ade716c6685139babff..504477ccb6f24d55934f1011706e966b74ca9bf3 100644
--- a/content/public/test/fake_download_item.h
+++ b/content/public/test/fake_download_item.h
@@ -80,6 +80,9 @@ class FakeDownloadItem : public DownloadItem {
void SetReceivedBytes(int64_t received_bytes);
int64_t GetReceivedBytes() const override;
+ void SetTotalBytes(int64_t total_bytes);
+ int64_t GetTotalBytes() const override;
+
void SetLastAccessTime(base::Time time) override;
base::Time GetLastAccessTime() const override;
@@ -122,7 +125,6 @@ class FakeDownloadItem : public DownloadItem {
int64_t CurrentSpeed() const override;
int PercentComplete() const override;
bool AllDataSaved() const override;
- int64_t GetTotalBytes() const override;
const std::vector<DownloadItem::ReceivedSlice>& GetReceivedSlices()
const override;
bool CanShowInFolder() override;
@@ -160,6 +162,7 @@ class FakeDownloadItem : public DownloadItem {
DownloadInterruptReason last_reason_ =
DownloadInterruptReason::DOWNLOAD_INTERRUPT_REASON_NONE;
int64_t received_bytes_ = 0;
+ int64_t total_bytes_ = 0;
// The members below are to be returned by methods, which return by reference.
std::string dummy_string;
« no previous file with comments | « content/public/browser/download_url_parameters.h ('k') | content/public/test/fake_download_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698