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

Unified Diff: components/offline_items_collection/core/offline_content_aggregator_unittest.cc

Issue 2811803006: Add support for pulling icons for OfflineItems (Closed)
Patch Set: More findbugs 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 side-by-side diff with in-line comments
Download patch
Index: components/offline_items_collection/core/offline_content_aggregator_unittest.cc
diff --git a/components/offline_items_collection/core/offline_content_aggregator_unittest.cc b/components/offline_items_collection/core/offline_content_aggregator_unittest.cc
index 361934084453b308d79fab96a625c10af07bb0e1..45d77fd42e2bee695148351eed2f48199099bb26 100644
--- a/components/offline_items_collection/core/offline_content_aggregator_unittest.cc
+++ b/components/offline_items_collection/core/offline_content_aggregator_unittest.cc
@@ -299,6 +299,8 @@ TEST_F(OfflineContentAggregatorTest, ActionPropagatesToRightProvider) {
EXPECT_CALL(provider2, ResumeDownload(id2)).Times(1);
EXPECT_CALL(provider1, PauseDownload(id1)).Times(1);
EXPECT_CALL(provider2, PauseDownload(id2)).Times(1);
+ EXPECT_CALL(provider1, GetVisualsForItem(id1, _)).Times(1);
+ EXPECT_CALL(provider2, GetVisualsForItem(id2, _)).Times(1);
aggregator_.OpenItem(id1);
aggregator_.OpenItem(id2);
aggregator_.RemoveItem(id1);
@@ -309,6 +311,8 @@ TEST_F(OfflineContentAggregatorTest, ActionPropagatesToRightProvider) {
aggregator_.ResumeDownload(id2);
aggregator_.PauseDownload(id1);
aggregator_.PauseDownload(id2);
+ aggregator_.GetVisualsForItem(id1, OfflineContentProvider::VisualsCallback());
+ aggregator_.GetVisualsForItem(id2, OfflineContentProvider::VisualsCallback());
}
TEST_F(OfflineContentAggregatorTest, ActionPropagatesAfterInitialize) {

Powered by Google App Engine
This is Rietveld 408576698