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

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

Issue 11363222: Persist download interrupt reason, both target and current paths, and url_chain. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed ordering of target_path and current_path everywhere to match that of DownloadItemImpl. Created 8 years 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/public/test/mock_download_manager.cc
diff --git a/content/public/test/mock_download_manager.cc b/content/public/test/mock_download_manager.cc
index 64349fdfcba4c713b01c15f8d6903f855dd97f52..8df607788752f846bd6ebdbc9da73e01de0a4872 100644
--- a/content/public/test/mock_download_manager.cc
+++ b/content/public/test/mock_download_manager.cc
@@ -22,4 +22,21 @@ DownloadItem* MockDownloadManager::StartDownload(
return MockStartDownload(info.get(), stream.get());
}
+DownloadItem* MockDownloadManager::CreateDownloadItem(
+ const FilePath& current_path,
+ const FilePath& target_path,
+ const std::vector<GURL>& url_chain,
+ const GURL& referrer_url,
+ const base::Time& start_time,
+ const base::Time& end_time,
+ int64 received_bytes,
+ int64 total_bytes,
+ DownloadItem::DownloadState state,
+ DownloadInterruptReason interrupt_reason,
+ bool opened) {
+ return MockCreateDownloadItem(
+ target_path, url_chain, referrer_url, start_time, end_time,
+ received_bytes, total_bytes, state, interrupt_reason, opened);
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698