diff options
Diffstat (limited to 'content/browser/download/mock_download_file.cc')
-rw-r--r-- | content/browser/download/mock_download_file.cc | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/content/browser/download/mock_download_file.cc b/content/browser/download/mock_download_file.cc index 9d02372..d5c7781 100644 --- a/content/browser/download/mock_download_file.cc +++ b/content/browser/download/mock_download_file.cc @@ -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() { |