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

Unified Diff: components/ntp_snippets/content_suggestions_service_unittest.cc

Issue 2463133002: 📰 Make the MORE button more configurable (Closed)
Patch Set: rebase Created 4 years, 1 month 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/ntp_snippets/content_suggestions_service_unittest.cc
diff --git a/components/ntp_snippets/content_suggestions_service_unittest.cc b/components/ntp_snippets/content_suggestions_service_unittest.cc
index 99d7a3fd0259b478e397167124398b0371f48247..7ec5cda18afc9337064fabb262748250142ac869 100644
--- a/components/ntp_snippets/content_suggestions_service_unittest.cc
+++ b/components/ntp_snippets/content_suggestions_service_unittest.cc
@@ -60,7 +60,8 @@ class MockProvider : public ContentSuggestionsProvider {
CategoryInfo GetCategoryInfo(Category category) override {
return CategoryInfo(base::ASCIIToUTF16("Section title"),
- ContentSuggestionsCardLayout::FULL_CARD, true, true,
+ ContentSuggestionsCardLayout::FULL_CARD, true, false,
+ true, false,
base::ASCIIToUTF16("No suggestions message"));
}
@@ -477,7 +478,9 @@ TEST_F(ContentSuggestionsServiceTest, ShouldReturnCategoryInfo) {
const CategoryInfo& actual = result.value();
EXPECT_THAT(expected.title(), Eq(actual.title()));
EXPECT_THAT(expected.card_layout(), Eq(actual.card_layout()));
- EXPECT_THAT(expected.has_more_button(), Eq(actual.has_more_button()));
+ EXPECT_THAT(expected.has_more_action(), Eq(actual.has_more_action()));
+ EXPECT_THAT(expected.has_reload_action(), Eq(actual.has_reload_action()));
+ EXPECT_THAT(expected.has_view_all_action(), Eq(actual.has_view_all_action()));
}
TEST_F(ContentSuggestionsServiceTest,
« no previous file with comments | « components/ntp_snippets/category_info.cc ('k') | components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698