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

Side by Side Diff: content/browser/download/mock_download_item_impl.cc

Issue 2720613002: Downloads: Added transient flag to download item and download database (Closed)
Patch Set: fix tests Created 3 years, 8 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/download/download_manager_impl_unittest.cc ('k') | content/public/browser/download_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698