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

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

Issue 10913015: Reland DownloadManager::GetAllDownloads actually does now (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
diff --git a/chrome/browser/download/download_status_updater_unittest.cc b/chrome/browser/download/download_status_updater_unittest.cc
index 7a361243004fd7f53c29fba415d22d372a0b9e99..0b6d22434d86e1cfe47609db6b9e5c7c96b4ebf4 100644
--- a/chrome/browser/download/download_status_updater_unittest.cc
+++ b/chrome/browser/download/download_status_updater_unittest.cc
@@ -103,6 +103,8 @@ class DownloadStatusUpdaterTest : public testing::Test {
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));
@@ -114,8 +116,8 @@ class DownloadStatusUpdaterTest : public testing::Test {
}
manager_items_[manager_index].push_back(item);
}
- EXPECT_CALL(*manager, SearchDownloads(string16(), _))
- .WillOnce(SetArgPointee<1>(manager_items_[manager_index]));
+ EXPECT_CALL(*manager, GetAllDownloads(_))
+ .WillOnce(SetArgPointee<0>(manager_items_[manager_index]));
}
// Return the specified manager.
« no previous file with comments | « chrome/browser/download/download_status_updater_mac.mm ('k') | chrome/browser/extensions/api/downloads/downloads_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698