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

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

Issue 2767373002: Implement GetJobResponse and merge JobData into DataManager. (Closed)
Patch Set: Removed typedef and added DISALLOW_COPY_AND_ASSIGN 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
« no previous file with comments | « content/public/test/fake_download_item.h ('k') | content/test/BUILD.gn » ('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 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) {
+ 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();
« no previous file with comments | « content/public/test/fake_download_item.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698