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

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

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/test/fake_download_item.h ('k') | content/public/test/mock_download_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ccc21880d45faf3e3d4d92696a145d1057d9b824..4ae0a1b50527a4f3b4f87412a535c4dfd3207a28 100644
--- a/content/public/test/fake_download_item.cc
+++ b/content/public/test/fake_download_item.cc
@@ -157,6 +157,10 @@ void FakeDownloadItem::SetReceivedBytes(int64_t received_bytes) {
received_bytes_ = received_bytes;
}
+void FakeDownloadItem::SetTotalBytes(int64_t total_bytes) {
+ total_bytes_ = total_bytes;
+}
+
int64_t FakeDownloadItem::GetReceivedBytes() const {
return received_bytes_;
}
@@ -206,7 +210,6 @@ void FakeDownloadItem::ShowDownloadInShell() {
}
bool FakeDownloadItem::IsPaused() const {
- NOTREACHED();
return false;
}
@@ -351,8 +354,7 @@ bool FakeDownloadItem::AllDataSaved() const {
}
int64_t FakeDownloadItem::GetTotalBytes() const {
- NOTREACHED();
- return 1;
+ return total_bytes_;
}
const std::vector<DownloadItem::ReceivedSlice>&
« no previous file with comments | « content/public/test/fake_download_item.h ('k') | content/public/test/mock_download_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698