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

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

Issue 2767373002: Implement GetJobResponse and merge JobData into DataManager. (Closed)
Patch Set: cleanup Created 3 years, 9 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 4bb1e706a32fb2985eba9f1d06c30c4d19423b5d..06b12607d4857dab10300754c741bbb38390c88e 100644
--- a/content/public/test/fake_download_item.cc
+++ b/content/public/test/fake_download_item.cc
@@ -134,6 +134,14 @@ const GURL& FakeDownloadItem::GetOriginalUrl() const {
return original_url_;
}
+void FakeDownloadItem::SetReceivedBytes(int64_t received_bytes) {
Peter Beverloo 2017/03/25 03:38:50 Should this trigger NotifyDownloadUpdated()?
harkness 2017/03/26 16:13:18 It could, but that would break the current model (
+ received_bytes_ = received_bytes;
+}
+
+int64_t FakeDownloadItem::GetReceivedBytes() const {
+ return received_bytes_;
+}
+
// The methods below are not supported and are not expected to be called.
void FakeDownloadItem::ValidateDangerousDownload() {
NOTREACHED();
@@ -325,11 +333,6 @@ int64_t FakeDownloadItem::GetTotalBytes() const {
return 1;
}
-int64_t FakeDownloadItem::GetReceivedBytes() const {
- NOTREACHED();
- return 1;
-}
-
const std::vector<DownloadItem::ReceivedSlice>&
FakeDownloadItem::GetReceivedSlices() const {
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698