| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/download/mock_download_item_impl.h" | 5 #include "content/browser/download/mock_download_item_impl.h" |
| 6 | 6 |
| 7 namespace content { | 7 namespace content { |
| 8 | 8 |
| 9 MockDownloadItemImpl::MockDownloadItemImpl(DownloadItemImplDelegate* delegate) | 9 MockDownloadItemImpl::MockDownloadItemImpl( |
| 10 DownloadItemImplDelegate* delegate, |
| 11 const DownloadItem::ReceivedSlices& received_slices) |
| 10 : DownloadItemImpl(delegate, | 12 : DownloadItemImpl(delegate, |
| 11 std::string("7d122682-55b5-4a47-a253-36cadc3e5bee"), | 13 std::string("7d122682-55b5-4a47-a253-36cadc3e5bee"), |
| 12 content::DownloadItem::kInvalidId, | 14 content::DownloadItem::kInvalidId, |
| 13 base::FilePath(), | 15 base::FilePath(), |
| 14 base::FilePath(), | 16 base::FilePath(), |
| 15 std::vector<GURL>(), | 17 std::vector<GURL>(), |
| 16 GURL(), | 18 GURL(), |
| 17 GURL(), | 19 GURL(), |
| 18 GURL(), | 20 GURL(), |
| 19 GURL(), | 21 GURL(), |
| 20 "application/octet-stream", | 22 "application/octet-stream", |
| 21 "application/octet-stream", | 23 "application/octet-stream", |
| 22 base::Time(), | 24 base::Time(), |
| 23 base::Time(), | 25 base::Time(), |
| 24 std::string(), | 26 std::string(), |
| 25 std::string(), | 27 std::string(), |
| 26 0, | 28 0, |
| 27 0, | 29 0, |
| 28 std::string(), | 30 std::string(), |
| 29 DownloadItem::COMPLETE, | 31 DownloadItem::COMPLETE, |
| 30 DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS, | 32 DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS, |
| 31 DOWNLOAD_INTERRUPT_REASON_NONE, | 33 DOWNLOAD_INTERRUPT_REASON_NONE, |
| 32 false, | 34 false, |
| 33 base::Time(), | 35 base::Time(), |
| 34 std::vector<DownloadItem::ReceivedSlice>(), | 36 received_slices, |
| 35 net::NetLogWithSource()) {} | 37 net::NetLogWithSource()) {} |
| 36 | 38 |
| 39 MockDownloadItemImpl::MockDownloadItemImpl(DownloadItemImplDelegate* delegate) |
| 40 : MockDownloadItemImpl(delegate, DownloadItem::ReceivedSlices()) {} |
| 41 |
| 37 MockDownloadItemImpl::~MockDownloadItemImpl() = default; | 42 MockDownloadItemImpl::~MockDownloadItemImpl() = default; |
| 38 | 43 |
| 39 } // namespace content | 44 } // namespace content |
| OLD | NEW |