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( | 9 MockDownloadItemImpl::MockDownloadItemImpl( |
10 DownloadItemImplDelegate* delegate, | 10 DownloadItemImplDelegate* delegate, |
(...skipping 15 matching lines...) Expand all Loading... |
26 std::string(), | 26 std::string(), |
27 std::string(), | 27 std::string(), |
28 0, | 28 0, |
29 0, | 29 0, |
30 std::string(), | 30 std::string(), |
31 DownloadItem::COMPLETE, | 31 DownloadItem::COMPLETE, |
32 DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS, | 32 DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS, |
33 DOWNLOAD_INTERRUPT_REASON_NONE, | 33 DOWNLOAD_INTERRUPT_REASON_NONE, |
34 false, | 34 false, |
35 base::Time(), | 35 base::Time(), |
| 36 true, |
36 received_slices, | 37 received_slices, |
37 net::NetLogWithSource()) {} | 38 net::NetLogWithSource()) {} |
38 | 39 |
39 MockDownloadItemImpl::MockDownloadItemImpl(DownloadItemImplDelegate* delegate) | 40 MockDownloadItemImpl::MockDownloadItemImpl(DownloadItemImplDelegate* delegate) |
40 : MockDownloadItemImpl(delegate, DownloadItem::ReceivedSlices()) {} | 41 : MockDownloadItemImpl(delegate, DownloadItem::ReceivedSlices()) {} |
41 | 42 |
42 MockDownloadItemImpl::~MockDownloadItemImpl() = default; | 43 MockDownloadItemImpl::~MockDownloadItemImpl() = default; |
43 | 44 |
44 } // namespace content | 45 } // namespace content |
OLD | NEW |