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

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

Issue 2787303002: [NTP::Downloads] Use last access time to filter old asset downloads. (Closed)
Patch Set: clean rebase. 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') | no next file » | 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 6348c7ab84226dbf2d2f35212619023d21b64ef0..d9a333979dde71e0ac00d48818ac40dbba0d309d 100644
--- a/content/public/test/fake_download_item.cc
+++ b/content/public/test/fake_download_item.cc
@@ -142,6 +142,14 @@ int64_t FakeDownloadItem::GetReceivedBytes() const {
return received_bytes_;
}
+void FakeDownloadItem::SetLastAccessTime(base::Time time) {
+ last_access_time_ = time;
+}
+
+base::Time FakeDownloadItem::GetLastAccessTime() const {
+ return last_access_time_;
+}
+
// The methods below are not supported and are not expected to be called.
void FakeDownloadItem::ValidateDangerousDownload() {
NOTREACHED();
@@ -370,11 +378,6 @@ bool FakeDownloadItem::GetOpened() const {
return false;
}
-base::Time FakeDownloadItem::GetLastAccessTime() const {
- NOTREACHED();
- return base::Time();
-}
-
bool FakeDownloadItem::IsTransient() const {
NOTREACHED();
return false;
@@ -402,10 +405,6 @@ void FakeDownloadItem::SetOpened(bool opened) {
NOTREACHED();
}
-void FakeDownloadItem::SetLastAccessTime(base::Time time) {
- NOTREACHED();
-}
-
void FakeDownloadItem::SetDisplayName(const base::FilePath& name) {
NOTREACHED();
}
« no previous file with comments | « content/public/test/fake_download_item.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698