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

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

Issue 2828073002: Fix an issue that we didn't clean url request properly. (Closed)
Patch Set: Created 3 years, 8 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/parallel_download_job.h » ('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
diff --git a/content/browser/download/mock_download_file.cc b/content/browser/download/mock_download_file.cc
index 36282d51b4dcb7c20a5f80cbaf6721661670067a..180ea1b9f9013592ef48f9880d46d59297660578 100644
--- a/content/browser/download/mock_download_file.cc
+++ b/content/browser/download/mock_download_file.cc
@@ -11,9 +11,11 @@ using ::testing::Return;
namespace content {
namespace {
-void SuccessRun(const DownloadFile::InitializeCallback& callback,
- const DownloadItem::ReceivedSlices& received_slices) {
- callback.Run(DOWNLOAD_INTERRUPT_REASON_NONE);
+void SuccessRun(
+ const DownloadFile::InitializeCallback& initialize_callback,
+ const DownloadFile::CancelRequestCallback& cancel_request_callback,
+ const DownloadItem::ReceivedSlices& received_slices) {
+ initialize_callback.Run(DOWNLOAD_INTERRUPT_REASON_NONE);
}
} // namespace
@@ -21,7 +23,8 @@ void SuccessRun(const DownloadFile::InitializeCallback& callback,
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(::testing::Invoke(SuccessRun));
}
MockDownloadFile::~MockDownloadFile() {
« no previous file with comments | « content/browser/download/mock_download_file.h ('k') | content/browser/download/parallel_download_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698