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

Unified Diff: content/public/test/mock_download_manager.h

Issue 2705283003: Added last_access_time to DownloadItem and History DB (Closed)
Patch Set: rebase origin/master Created 3 years, 10 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/mock_download_item.h ('k') | content/public/test/mock_download_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/mock_download_manager.h
diff --git a/content/public/test/mock_download_manager.h b/content/public/test/mock_download_manager.h
index 1bf01642d932b85c05767ee61486bc01b2a1e4ec..4da5ff5b7d04f5c9da7db95cb1008b2d934dc32e 100644
--- a/content/public/test/mock_download_manager.h
+++ b/content/public/test/mock_download_manager.h
@@ -52,6 +52,7 @@ class MockDownloadManager : public DownloadManager {
DownloadDangerType danger_type;
DownloadInterruptReason interrupt_reason;
bool opened;
+ base::Time last_access_time;
std::vector<DownloadItem::ReceivedSlice> received_slices;
CreateDownloadItemAdapter(
@@ -66,8 +67,8 @@ class MockDownloadManager : public DownloadManager {
const GURL& tab_refererr_url,
const std::string& mime_type,
const std::string& original_mime_type,
- const base::Time& start_time,
- const base::Time& end_time,
+ base::Time start_time,
+ base::Time end_time,
const std::string& etag,
const std::string& last_modified,
int64_t received_bytes,
@@ -77,6 +78,7 @@ class MockDownloadManager : public DownloadManager {
DownloadDangerType danger_type,
DownloadInterruptReason interrupt_reason,
bool opened,
+ base::Time last_access_time,
const std::vector<DownloadItem::ReceivedSlice>& received_slices);
// Required by clang compiler.
CreateDownloadItemAdapter(const CreateDownloadItemAdapter& rhs);
@@ -127,8 +129,8 @@ class MockDownloadManager : public DownloadManager {
const GURL& tab_refererr_url,
const std::string& mime_type,
const std::string& original_mime_type,
- const base::Time& start_time,
- const base::Time& end_time,
+ base::Time start_time,
+ base::Time end_time,
const std::string& etag,
const std::string& last_modified,
int64_t received_bytes,
@@ -138,6 +140,7 @@ class MockDownloadManager : public DownloadManager {
DownloadDangerType danger_type,
DownloadInterruptReason interrupt_reason,
bool opened,
+ base::Time last_access_time,
const std::vector<DownloadItem::ReceivedSlice>& received_slices) override;
MOCK_METHOD1(MockCreateDownloadItem,
« no previous file with comments | « content/public/test/mock_download_item.h ('k') | content/public/test/mock_download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698