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

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

Issue 2727143005: Change FindNextSliceToDownload() into FindSlicesToDownload() (Closed)
Patch Set: adding TODO and comments Created 3 years, 10 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/parallel_download_job_unittest.cc
diff --git a/content/browser/download/parallel_download_job_unittest.cc b/content/browser/download/parallel_download_job_unittest.cc
index 4828b2af64e7e2d1bb09dbe00488f747ebf440de..72ef5ac6db52c81caafaf0c50639b91ec97df8ed 100644
--- a/content/browser/download/parallel_download_job_unittest.cc
+++ b/content/browser/download/parallel_download_job_unittest.cc
@@ -36,8 +36,10 @@ class ParallelDownloadJobForTest : public ParallelDownloadJob {
public:
ParallelDownloadJobForTest(
DownloadItemImpl* download_item,
- std::unique_ptr<DownloadRequestHandleInterface> request_handle)
- : ParallelDownloadJob(download_item, std::move(request_handle)) {}
+ std::unique_ptr<DownloadRequestHandleInterface> request_handle,
+ const DownloadCreateInfo& create_info)
+ : ParallelDownloadJob(
+ download_item, std::move(request_handle), create_info) {}
void CreateRequest(int64_t offset, int64_t length) override {
fake_tasks_.push_back(std::pair<int64_t, int64_t>(offset, length));
@@ -56,7 +58,8 @@ class ParallelDownloadJobTest : public testing::Test {
download_item_ =
base::MakeUnique<NiceMock<MockDownloadItemImpl>>(item_delegate_.get());
job_ = base::MakeUnique<ParallelDownloadJobForTest>(
- download_item_.get(), base::MakeUnique<MockDownloadRequestHandle>());
+ download_item_.get(), base::MakeUnique<MockDownloadRequestHandle>(),
+ DownloadCreateInfo());
}
void CreateNewDownloadRequests(int64_t total_bytes,

Powered by Google App Engine
This is Rietveld 408576698