| Index: chrome/browser/ntp_snippets/download_suggestions_provider_unittest.cc
|
| diff --git a/chrome/browser/ntp_snippets/download_suggestions_provider_unittest.cc b/chrome/browser/ntp_snippets/download_suggestions_provider_unittest.cc
|
| index 24f53958c19dfb89cdd7541a95ff041949bcdbc7..37da5ad771f7e2550e2f2b8ad21a2f3f8ca1e76e 100644
|
| --- a/chrome/browser/ntp_snippets/download_suggestions_provider_unittest.cc
|
| +++ b/chrome/browser/ntp_snippets/download_suggestions_provider_unittest.cc
|
| @@ -771,17 +771,18 @@ TEST_F(DownloadSuggestionsProviderTest, ShouldPruneOfflinePagesDismissedIDs) {
|
| GetDummySuggestionId(3, /*is_offline_page=*/true));
|
| EXPECT_THAT(GetDismissedSuggestions(), SizeIs(3));
|
|
|
| - // Prune on getting all offline pages. Note that the first suggestion is not
|
| - // removed from |offline_pages_model| storage, because otherwise
|
| - // |GetDismissedSuggestions| cannot return it.
|
| + // Prune on getting all offline pages.
|
| EXPECT_CALL(*observer(),
|
| OnNewSuggestions(_, downloads_category(), IsEmpty()));
|
|
|
| - // TODO(vitaliii): Add the first suggestion back, so that
|
| - // GetDismissedSuggestions can return it.
|
| *(offline_pages_model()->mutable_items()) =
|
| CreateDummyOfflinePages({2, 3});
|
| FireOfflinePageModelChanged();
|
| +
|
| + // The first suggestion is added back to the |offline_pages_model| storage,
|
| + // because otherwise |GetDismissedSuggestions| cannot return it.
|
| + *(offline_pages_model()->mutable_items()) =
|
| + CreateDummyOfflinePages({1, 2, 3});
|
| EXPECT_THAT(GetDismissedSuggestions(), SizeIs(2));
|
|
|
| // Prune when offline page is deleted.
|
|
|