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>& |