diff options
author | rdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-30 22:42:28 +0000 |
---|---|---|
committer | rdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-30 22:42:28 +0000 |
commit | 70f522d19798c26334e68e0b6d8c3d373ebda453 (patch) | |
tree | 8c82deb7c1ed7024f31df2a040d14c6cc38f7139 /content/browser/download/mock_download_file.h | |
parent | fa9e3003a4304c441f0879c6742edb74ff2d10ee (diff) | |
download | chromium_src-70f522d19798c26334e68e0b6d8c3d373ebda453.zip chromium_src-70f522d19798c26334e68e0b6d8c3d373ebda453.tar.gz chromium_src-70f522d19798c26334e68e0b6d8c3d373ebda453.tar.bz2 |
Remove DownloadFileManager in favor of direct ownership of DownloadFiles.
This CL is equivalent to CLs
* http://codereview.chromium.org/10799005,
* http://codereview.chromium.org/10836293,
* https://chromiumcodereview.appspot.com/10823406, and
* http://codereview.chromium.org/10867065
which were previous attempts to land the same functionality.
R=benjhayden@chromium.org
TBR=jam@chromium.org
BUG=123998
BUG=144751
Review URL: https://chromiumcodereview.appspot.com/10900010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154294 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/download/mock_download_file.h')
-rw-r--r-- | content/browser/download/mock_download_file.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/content/browser/download/mock_download_file.h b/content/browser/download/mock_download_file.h index 34bcb54..9fb83bd 100644 --- a/content/browser/download/mock_download_file.h +++ b/content/browser/download/mock_download_file.h @@ -24,7 +24,7 @@ class MockDownloadFile : virtual public content::DownloadFile { virtual ~MockDownloadFile(); // DownloadFile functions. - MOCK_METHOD0(Initialize, content::DownloadInterruptReason()); + MOCK_METHOD1(Initialize, void(const InitializeCallback&)); MOCK_METHOD2(AppendDataToFile, content::DownloadInterruptReason( const char* data, size_t data_len)); MOCK_METHOD1(Rename, content::DownloadInterruptReason( @@ -42,7 +42,6 @@ class MockDownloadFile : virtual public content::DownloadFile { MOCK_CONST_METHOD0(CurrentSpeed, int64()); 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*()); |