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

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

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
Index: content/browser/download/download_manager_impl_unittest.cc
diff --git a/content/browser/download/download_manager_impl_unittest.cc b/content/browser/download/download_manager_impl_unittest.cc
index 2e9eff427e952d155d92ac84215a3f7ce57815b4..1eb0d432d6ff35405013022bca9261bd47b23544 100644
--- a/content/browser/download/download_manager_impl_unittest.cc
+++ b/content/browser/download/download_manager_impl_unittest.cc
@@ -54,6 +54,7 @@ ACTION_TEMPLATE(RunCallback,
}
namespace content {
+template <typename StatusType>
class ByteStreamReader;
namespace {
@@ -361,7 +362,7 @@ class MockDownloadFileFactory
const DownloadSaveInfo&,
const base::FilePath&,
const GURL&, const GURL&, bool,
- ByteStreamReader*,
+ ByteStreamReader<DownloadInterruptReason>*,
const net::BoundNetLog&,
base::WeakPtr<DownloadDestinationObserver>));
@@ -371,7 +372,7 @@ class MockDownloadFileFactory
const GURL& url,
const GURL& referrer_url,
bool calculate_hash,
- scoped_ptr<ByteStreamReader> stream,
+ scoped_ptr<ByteStreamReader<DownloadInterruptReason> > stream,
const net::BoundNetLog& bound_net_log,
base::WeakPtr<DownloadDestinationObserver> observer) {
return MockCreateFile(*save_info.get(), default_download_directory, url,
@@ -572,7 +573,7 @@ class DownloadManagerTest : public testing::Test {
// Confirm the appropriate invocations occur when you start a download.
TEST_F(DownloadManagerTest, StartDownload) {
scoped_ptr<DownloadCreateInfo> info(new DownloadCreateInfo);
- scoped_ptr<ByteStreamReader> stream;
+ scoped_ptr<ByteStreamReader<DownloadInterruptReason> > stream;
uint32 local_id(5); // Random value
base::FilePath download_path(FILE_PATH_LITERAL("download/path"));
« no previous file with comments | « content/browser/download/download_manager_impl.cc ('k') | content/browser/download/download_resource_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698