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

Unified Diff: components/ntp_snippets/content_suggestions_service_unittest.cc

Issue 2232783002: Support action button to fetch more content suggestions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@snippetsbridge
Patch Set: Created 4 years, 4 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/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 064cd38957ce38f0c90f2373f00c96e920760ba2..e7338abaab4055bef6c2a2235e1e8253ce55c965 100644
--- a/components/ntp_snippets/content_suggestions_service_unittest.cc
+++ b/components/ntp_snippets/content_suggestions_service_unittest.cc
@@ -75,7 +75,7 @@ class MockProvider : public ContentSuggestionsProvider {
CategoryInfo GetCategoryInfo(Category category) {
return CategoryInfo(base::ASCIIToUTF16("Section title"),
- ContentSuggestionsCardLayout::FULL_CARD);
+ ContentSuggestionsCardLayout::FULL_CARD, true);
}
void FireSuggestionsChanged(Category category, std::vector<int> numbers) {
@@ -87,14 +87,15 @@ class MockProvider : public ContentSuggestionsProvider {
observer()->OnCategoryStatusChanged(this, category, new_status);
}
- MOCK_METHOD1(ClearCachedSuggestionsForDebugging, void(Category category));
- MOCK_METHOD1(GetDismissedSuggestionsForDebugging,
- std::vector<ContentSuggestion>(Category category));
- MOCK_METHOD1(ClearDismissedSuggestionsForDebugging, void(Category category));
+ MOCK_METHOD1(FetchMoreSuggestions, void(Category category));
MOCK_METHOD1(DismissSuggestion, void(const std::string& suggestion_id));
MOCK_METHOD2(FetchSuggestionImage,
void(const std::string& suggestion_id,
const ImageFetchedCallback& callback));
+ MOCK_METHOD1(ClearCachedSuggestionsForDebugging, void(Category category));
+ MOCK_METHOD1(GetDismissedSuggestionsForDebugging,
+ std::vector<ContentSuggestion>(Category category));
+ MOCK_METHOD1(ClearDismissedSuggestionsForDebugging, void(Category category));
private:
std::vector<Category> provided_categories_;

Powered by Google App Engine
This is Rietveld 408576698