This source file includes following definitions.
- SuccessRun
#include "content/browser/download/mock_download_file.h"
#include "testing/gmock/include/gmock/gmock.h"
using ::testing::_;
using ::testing::Return;
namespace content {
namespace {
void SuccessRun(const DownloadFile::InitializeCallback& callback) {
callback.Run(DOWNLOAD_INTERRUPT_REASON_NONE);
}
}
MockDownloadFile::MockDownloadFile() {
ON_CALL(*this, Initialize(_))
.WillByDefault(::testing::Invoke(SuccessRun));
}
MockDownloadFile::~MockDownloadFile() {
}
}