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

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

Issue 2689373003: Introduce ParallelDownloadJob. (Closed)
Patch Set: nits. 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
« no previous file with comments | « content/browser/download/mock_download_item_impl.h ('k') | content/browser/download/mock_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_item_impl.cc
diff --git a/content/browser/download/mock_download_item_impl.cc b/content/browser/download/mock_download_item_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..92795c0bfc9830b04fdd6d8b97e078689861720f
--- /dev/null
+++ b/content/browser/download/mock_download_item_impl.cc
@@ -0,0 +1,38 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/browser/download/mock_download_item_impl.h"
+
+namespace content {
+
+MockDownloadItemImpl::MockDownloadItemImpl(DownloadItemImplDelegate* delegate)
+ : DownloadItemImpl(delegate,
+ std::string("7d122682-55b5-4a47-a253-36cadc3e5bee"),
+ content::DownloadItem::kInvalidId,
+ base::FilePath(),
+ base::FilePath(),
+ std::vector<GURL>(),
+ GURL(),
+ GURL(),
+ GURL(),
+ GURL(),
+ "application/octet-stream",
+ "application/octet-stream",
+ base::Time(),
+ base::Time(),
+ std::string(),
+ std::string(),
+ 0,
+ 0,
+ std::string(),
+ DownloadItem::COMPLETE,
+ DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS,
+ DOWNLOAD_INTERRUPT_REASON_NONE,
+ false,
+ std::vector<DownloadItem::ReceivedSlice>(),
+ net::NetLogWithSource()) {}
+
+MockDownloadItemImpl::~MockDownloadItemImpl() = default;
+
+} // namespace content
« no previous file with comments | « content/browser/download/mock_download_item_impl.h ('k') | content/browser/download/mock_download_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698