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

Unified Diff: content/browser/download/mock_download_file.h

Issue 10689093: Move Rename functionality from DownloadFileManager to DownloadFileImple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged to LKGR. 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
Index: content/browser/download/mock_download_file.h
diff --git a/content/browser/download/mock_download_file.h b/content/browser/download/mock_download_file.h
index 330a501b179043acc42540199a537c5ee65d6134..8a5511bd31041e283bf76226f98dc6309403ad12 100644
--- a/content/browser/download/mock_download_file.h
+++ b/content/browser/download/mock_download_file.h
@@ -30,6 +30,9 @@ class MockDownloadFile : virtual public content::DownloadFile {
const char* data, size_t data_len));
MOCK_METHOD1(Rename, content::DownloadInterruptReason(
const FilePath& full_path));
+ MOCK_METHOD3(Rename, void(const FilePath& full_path,
+ bool overwrite_existing_file,
+ const RenameCompletionCallback& callback));
MOCK_METHOD0(Detach, void());
MOCK_METHOD0(Cancel, void());
MOCK_METHOD0(Finish, void());
@@ -41,6 +44,7 @@ class MockDownloadFile : virtual public content::DownloadFile {
MOCK_METHOD1(GetHash, bool(std::string* hash));
MOCK_METHOD0(GetHashState, std::string());
MOCK_METHOD0(CancelDownloadRequest, void());
+ MOCK_METHOD0(SendUpdate, void());
MOCK_CONST_METHOD0(Id, int());
MOCK_METHOD0(GetDownloadManager, content::DownloadManager*());
MOCK_CONST_METHOD0(GlobalId, const content::DownloadId&());

Powered by Google App Engine
This is Rietveld 408576698