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

Unified Diff: chrome/browser/download/download_status_updater_unittest.cc

Issue 10914158: Revert 155351 - Make DownloadManager::GetAllDownloads return all downloads regardless of state, per… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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
Index: chrome/browser/download/download_status_updater_unittest.cc
===================================================================
--- chrome/browser/download/download_status_updater_unittest.cc (revision 155501)
+++ chrome/browser/download/download_status_updater_unittest.cc (working copy)
@@ -103,8 +103,6 @@
for (int i = 0; i < item_count; ++i) {
content::MockDownloadItem* item =
new StrictMock<content::MockDownloadItem>;
- EXPECT_CALL(*item, IsTemporary())
- .WillRepeatedly(Return(false));
if (i < in_progress_count) {
EXPECT_CALL(*item, GetState())
.WillRepeatedly(Return(content::DownloadItem::IN_PROGRESS));
@@ -116,8 +114,8 @@
}
manager_items_[manager_index].push_back(item);
}
- EXPECT_CALL(*manager, GetAllDownloads(_))
- .WillOnce(SetArgPointee<0>(manager_items_[manager_index]));
+ EXPECT_CALL(*manager, SearchDownloads(string16(), _))
+ .WillOnce(SetArgPointee<1>(manager_items_[manager_index]));
}
// Return the specified manager.
« no previous file with comments | « chrome/browser/download/download_status_updater.cc ('k') | chrome/browser/extensions/api/downloads/downloads_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698