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

Unified Diff: content/public/test/mock_download_manager.h

Issue 18284005: Make ByteStream independent from DownloadInterruptReason (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rdsmith's comments Created 7 years, 5 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/public/browser/download_manager.h ('k') | content/public/test/mock_download_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/mock_download_manager.h
diff --git a/content/public/test/mock_download_manager.h b/content/public/test/mock_download_manager.h
index 9f090a92bc3b6493a4622f50fa5e887d9e32a079..adbdc2fa87e23953c1915d7348705a5f50bce2ed 100644
--- a/content/public/test/mock_download_manager.h
+++ b/content/public/test/mock_download_manager.h
@@ -7,6 +7,7 @@
#include <vector>
+#include "content/public/browser/download_interrupt_reasons.h"
#include "content/public/browser/download_manager.h"
#include "content/public/browser/download_save_info.h"
#include "content/public/browser/download_url_parameters.h"
@@ -18,6 +19,9 @@ class DownloadRequestHandle;
namespace content {
+template <typename StatusType>
+class ByteStreamReader;
+
// To avoid leaking download_request_handle.h to embedders.
void PrintTo(const DownloadRequestHandle& params, std::ostream* os);
@@ -74,11 +78,12 @@ class MockDownloadManager : public DownloadManager {
// Gasket for handling scoped_ptr arguments.
virtual void StartDownload(
scoped_ptr<DownloadCreateInfo> info,
- scoped_ptr<ByteStreamReader> stream,
+ scoped_ptr<ByteStreamReader<DownloadInterruptReason> > stream,
const DownloadUrlParameters::OnStartedCallback& callback) OVERRIDE;
MOCK_METHOD2(MockStartDownload,
- void(DownloadCreateInfo*, ByteStreamReader*));
+ void(DownloadCreateInfo*,
+ ByteStreamReader<DownloadInterruptReason>*));
MOCK_METHOD2(RemoveDownloadsBetween, int(base::Time remove_begin,
base::Time remove_end));
MOCK_METHOD1(RemoveDownloads, int(base::Time remove_begin));
« no previous file with comments | « content/public/browser/download_manager.h ('k') | content/public/test/mock_download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698