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

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

Issue 13044019: Clean up entries left by crashes in the DownloadDB. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync'd to r192579 Created 7 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/download/download_item_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <set> 5 #include <set>
6 #include <string> 6 #include <string>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 delegate, 69 delegate,
70 content::DownloadId(), 70 content::DownloadId(),
71 base::FilePath(), 71 base::FilePath(),
72 base::FilePath(), 72 base::FilePath(),
73 std::vector<GURL>(), 73 std::vector<GURL>(),
74 GURL(), 74 GURL(),
75 base::Time(), 75 base::Time(),
76 base::Time(), 76 base::Time(),
77 0, 77 0,
78 0, 78 0,
79 DownloadItem::IN_PROGRESS, 79 DownloadItem::COMPLETE,
80 DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS, 80 DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS,
81 DOWNLOAD_INTERRUPT_REASON_NONE, 81 DOWNLOAD_INTERRUPT_REASON_NONE,
82 false, 82 false,
83 net::BoundNetLog()) {} 83 net::BoundNetLog()) {}
84 virtual ~MockDownloadItemImpl() {} 84 virtual ~MockDownloadItemImpl() {}
85 85
86 MOCK_METHOD4(OnDownloadTargetDetermined, 86 MOCK_METHOD4(OnDownloadTargetDetermined,
87 void(const base::FilePath&, TargetDisposition, 87 void(const base::FilePath&, TargetDisposition,
88 DownloadDangerType, const base::FilePath&)); 88 DownloadDangerType, const base::FilePath&));
89 MOCK_METHOD1(AddObserver, void(DownloadItem::Observer*)); 89 MOCK_METHOD1(AddObserver, void(DownloadItem::Observer*));
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 .WillOnce(Return()); 680 .WillOnce(Return());
681 EXPECT_CALL(GetMockDownloadItem(3), Remove()) 681 EXPECT_CALL(GetMockDownloadItem(3), Remove())
682 .Times(0); 682 .Times(0);
683 683
684 download_manager_->RemoveAllDownloads(); 684 download_manager_->RemoveAllDownloads();
685 // Because we're mocking the download item, the Remove call doesn't 685 // Because we're mocking the download item, the Remove call doesn't
686 // result in them being removed from the DownloadManager list. 686 // result in them being removed from the DownloadManager list.
687 } 687 }
688 688
689 } // namespace content 689 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/download_item_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698