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

Unified Diff: content/browser/download/download_manager_impl_unittest.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_manager_impl_unittest.cc
diff --git a/content/browser/download/download_manager_impl_unittest.cc b/content/browser/download/download_manager_impl_unittest.cc
index 59da8aef33d1c9d8a131e1f9eab24f90a3126030..85a57bbdfc0fa6c6dc57d898beb8136cfeb25a40 100644
--- a/content/browser/download/download_manager_impl_unittest.cc
+++ b/content/browser/download/download_manager_impl_unittest.cc
@@ -151,6 +151,7 @@ class MockDownloadItemFactory
DownloadInterruptReason interrupt_reason,
bool opened,
base::Time last_access_time,
+ bool transient,
const std::vector<DownloadItem::ReceivedSlice>& received_slices,
const net::NetLogWithSource& net_log) override;
DownloadItemImpl* CreateActiveItem(
@@ -225,6 +226,7 @@ DownloadItemImpl* MockDownloadItemFactory::CreatePersistedItem(
DownloadInterruptReason interrupt_reason,
bool opened,
base::Time last_access_time,
+ bool transient,
const std::vector<DownloadItem::ReceivedSlice>& received_slices,
const net::NetLogWithSource& net_log) {
DCHECK(items_.find(download_id) == items_.end());
@@ -611,7 +613,7 @@ TEST_F(DownloadManagerTest, GetDownloadByGuid) {
"application/octet-stream", "application/octet-stream", base::Time::Now(),
base::Time::Now(), std::string(), std::string(), 10, 10, std::string(),
DownloadItem::INTERRUPTED, DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS,
- DOWNLOAD_INTERRUPT_REASON_SERVER_FAILED, false, base::Time::Now(),
+ DOWNLOAD_INTERRUPT_REASON_SERVER_FAILED, false, base::Time::Now(), true,
std::vector<DownloadItem::ReceivedSlice>());
ASSERT_TRUE(persisted_item);
« no previous file with comments | « content/browser/download/download_manager_impl.cc ('k') | content/browser/download/mock_download_item_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698