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

Unified Diff: content/browser/download/download_browsertest.cc

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
Index: content/browser/download/download_browsertest.cc
diff --git a/content/browser/download/download_browsertest.cc b/content/browser/download/download_browsertest.cc
index d842e1eac70704297d24226a072f4d1de0fe18fe..5612c8219097171adb62717ef82fbf93934f1492 100644
--- a/content/browser/download/download_browsertest.cc
+++ b/content/browser/download/download_browsertest.cc
@@ -1847,7 +1847,7 @@ IN_PROC_BROWSER_TEST_F(DownloadContentTest, ResumeRestoredDownload_NoFile) {
base::Time(), parameters.etag, std::string(), kIntermediateSize,
parameters.size, std::string(), DownloadItem::INTERRUPTED,
DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS,
- DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED, false,
+ DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED, false, base::Time(),
std::vector<DownloadItem::ReceivedSlice>());
download->Resume();
@@ -1910,7 +1910,7 @@ IN_PROC_BROWSER_TEST_F(DownloadContentTest, ResumeRestoredDownload_NoHash) {
base::Time(), parameters.etag, std::string(), kIntermediateSize,
parameters.size, std::string(), DownloadItem::INTERRUPTED,
DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS,
- DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED, false,
+ DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED, false, base::Time(),
std::vector<DownloadItem::ReceivedSlice>());
download->Resume();
@@ -1960,7 +1960,7 @@ IN_PROC_BROWSER_TEST_F(DownloadContentTest,
base::Time(), "fake-etag", std::string(), kIntermediateSize,
parameters.size, std::string(), DownloadItem::INTERRUPTED,
DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS,
- DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED, false,
+ DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED, false, base::Time(),
std::vector<DownloadItem::ReceivedSlice>());
download->Resume();
@@ -2016,7 +2016,7 @@ IN_PROC_BROWSER_TEST_F(DownloadContentTest,
parameters.size,
std::string(std::begin(kPartialHash), std::end(kPartialHash)),
DownloadItem::INTERRUPTED, DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS,
- DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED, false,
+ DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED, false, base::Time(),
std::vector<DownloadItem::ReceivedSlice>());
download->Resume();
@@ -2078,7 +2078,7 @@ IN_PROC_BROWSER_TEST_F(DownloadContentTest, ResumeRestoredDownload_WrongHash) {
parameters.size,
std::string(std::begin(kPartialHash), std::end(kPartialHash)),
DownloadItem::INTERRUPTED, DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS,
- DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED, false,
+ DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED, false, base::Time(),
std::vector<DownloadItem::ReceivedSlice>());
download->Resume();
@@ -2149,7 +2149,7 @@ IN_PROC_BROWSER_TEST_F(DownloadContentTest, ResumeRestoredDownload_ShortFile) {
base::Time(), parameters.etag, std::string(), kIntermediateSize,
parameters.size, std::string(), DownloadItem::INTERRUPTED,
DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS,
- DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED, false,
+ DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED, false, base::Time(),
std::vector<DownloadItem::ReceivedSlice>());
download->Resume();
@@ -2218,7 +2218,7 @@ IN_PROC_BROWSER_TEST_F(DownloadContentTest, ResumeRestoredDownload_LongFile) {
base::Time(), parameters.etag, std::string(), kIntermediateSize,
parameters.size, std::string(), DownloadItem::INTERRUPTED,
DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS,
- DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED, false,
+ DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED, false, base::Time(),
std::vector<DownloadItem::ReceivedSlice>());
download->Resume();
« no previous file with comments | « components/history/core/test/history_backend_db_base_test.cc ('k') | content/browser/download/download_item_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698