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

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

Issue 2720613002: Downloads: Added transient flag to download item and download database (Closed)
Patch Set: fix tests 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/browser/download/download_browsertest.cc
diff --git a/content/browser/download/download_browsertest.cc b/content/browser/download/download_browsertest.cc
index 84d1e66a6510bcb4985d6c8ad2215132c4f564ea..733d9915a79bb207dba8884fefb39dba68f65aef 100644
--- a/content/browser/download/download_browsertest.cc
+++ b/content/browser/download/download_browsertest.cc
@@ -1859,7 +1859,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, base::Time(),
+ DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED, false, base::Time(), false,
std::vector<DownloadItem::ReceivedSlice>());
download->Resume();
@@ -1922,7 +1922,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, base::Time(),
+ DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED, false, base::Time(), false,
std::vector<DownloadItem::ReceivedSlice>());
download->Resume();
@@ -1972,7 +1972,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, base::Time(),
+ DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED, false, base::Time(), false,
std::vector<DownloadItem::ReceivedSlice>());
download->Resume();
@@ -2028,7 +2028,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, base::Time(),
+ DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED, false, base::Time(), false,
std::vector<DownloadItem::ReceivedSlice>());
download->Resume();
@@ -2090,7 +2090,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, base::Time(),
+ DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED, false, base::Time(), false,
std::vector<DownloadItem::ReceivedSlice>());
download->Resume();
@@ -2161,7 +2161,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, base::Time(),
+ DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED, false, base::Time(), false,
std::vector<DownloadItem::ReceivedSlice>());
download->Resume();
@@ -2230,7 +2230,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, base::Time(),
+ DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED, false, base::Time(), false,
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