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

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: Fixed migration unit test 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_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 075adc60489b66bd569a95aa23bc33ab60b6d943..953603fc1ea8277950d1031ec8cdb543df34161b 100644
--- a/content/browser/download/download_manager_impl_unittest.cc
+++ b/content/browser/download/download_manager_impl_unittest.cc
@@ -103,6 +103,7 @@ class MockDownloadItemImpl : public DownloadItemImpl {
DOWNLOAD_INTERRUPT_REASON_NONE,
false,
base::Time(),
+ true,
std::vector<DownloadItem::ReceivedSlice>(),
net::NetLogWithSource()) {}
virtual ~MockDownloadItemImpl() {}
@@ -271,6 +272,7 @@ class MockDownloadItemFactory
DownloadInterruptReason interrupt_reason,
bool opened,
const base::Time& last_access_time,
+ bool visible,
const std::vector<DownloadItem::ReceivedSlice>& received_slices,
const net::NetLogWithSource& net_log) override;
DownloadItemImpl* CreateActiveItem(
@@ -345,6 +347,7 @@ DownloadItemImpl* MockDownloadItemFactory::CreatePersistedItem(
DownloadInterruptReason interrupt_reason,
bool opened,
const base::Time& last_access_time,
+ bool visible,
const std::vector<DownloadItem::ReceivedSlice>& received_slices,
const net::NetLogWithSource& net_log) {
DCHECK(items_.find(download_id) == items_.end());
@@ -729,7 +732,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);

Powered by Google App Engine
This is Rietveld 408576698