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

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

Issue 10861002: Revert 152213 - Replace the DownloadFileManager with direct ownership of DownloadFile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/public/browser/download_manager.h ('k') | content/public/test/test_file_error_injector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/mock_download_manager.h
===================================================================
--- content/public/test/mock_download_manager.h (revision 152281)
+++ content/public/test/mock_download_manager.h (working copy)
@@ -39,9 +39,19 @@
scoped_ptr<ByteStreamReader> stream) OVERRIDE;
MOCK_METHOD2(MockStartDownload,
- content::DownloadId(DownloadCreateInfo*,
- ByteStreamReader*));
+ DownloadId(DownloadCreateInfo*,
+ ByteStreamReader*));
+ MOCK_METHOD4(UpdateDownload, void(int32 download_id,
+ int64 bytes_so_far,
+ int64 bytes_per_sec,
+ const std::string& hash_state));
+ MOCK_METHOD3(OnResponseCompleted, void(int32 download_id,
+ int64 size,
+ const std::string& hash));
MOCK_METHOD1(CancelDownload, void(int32 download_id));
+ MOCK_METHOD2(OnDownloadInterrupted,
+ void(int32 download_id,
+ DownloadInterruptReason reason));
MOCK_METHOD2(RemoveDownloadsBetween, int(base::Time remove_begin,
base::Time remove_end));
MOCK_METHOD1(RemoveDownloads, int(base::Time remove_begin));
« no previous file with comments | « content/public/browser/download_manager.h ('k') | content/public/test/test_file_error_injector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698