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

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

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/browser/download/mock_download_file.h ('k') | content/browser/download/save_package.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/mock_download_file.cc
===================================================================
--- content/browser/download/mock_download_file.cc (revision 152281)
+++ content/browser/download/mock_download_file.cc (working copy)
@@ -7,19 +7,11 @@
using ::testing::_;
using ::testing::Return;
-namespace {
-
-void SuccessRun(content::DownloadFile::InitializeCallback callback) {
- callback.Run(content::DOWNLOAD_INTERRUPT_REASON_NONE);
-}
-
-} // namespace
-
MockDownloadFile::MockDownloadFile() {
// This is here because |Initialize()| is normally called right after
// construction.
- ON_CALL(*this, Initialize(_))
- .WillByDefault(::testing::Invoke(SuccessRun));
+ ON_CALL(*this, Initialize())
+ .WillByDefault(Return(content::DOWNLOAD_INTERRUPT_REASON_NONE));
}
MockDownloadFile::~MockDownloadFile() {
« no previous file with comments | « content/browser/download/mock_download_file.h ('k') | content/browser/download/save_package.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698