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

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

Issue 10702151: Revert 146162 - Move Rename functionality from DownloadFileManager to DownloadFileImple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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
« no previous file with comments | « content/browser/download/download_manager_impl.cc ('k') | content/browser/download/mock_download_file.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_manager_impl_unittest.cc
===================================================================
--- content/browser/download/download_manager_impl_unittest.cc (revision 146176)
+++ content/browser/download/download_manager_impl_unittest.cc (working copy)
@@ -513,11 +513,15 @@
content::MockDownloadItem& item(AddItemToManager());
int download_id = item.GetId();
+ int64 size = 0xdeadbeef;
+ const std::string hash_state("Undead beef");
content::DownloadInterruptReason reason(
content::DOWNLOAD_INTERRUPT_REASON_FILE_FAILED);
+ EXPECT_CALL(item, UpdateProgress(size, 0, hash_state));
EXPECT_CALL(item, Interrupt(reason));
- download_manager_->OnDownloadInterrupted(download_id, reason);
+ download_manager_->OnDownloadInterrupted(
+ download_id, size, hash_state, reason);
EXPECT_EQ(&item, GetActiveDownloadItem(download_id));
}
« no previous file with comments | « content/browser/download/download_manager_impl.cc ('k') | content/browser/download/mock_download_file.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698