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

Side by Side Diff: components/ntp_snippets/mock_content_suggestions_provider_observer.h

Issue 2377663002: [NTP Snippets] Introduce ContentSuggestion::ID (Closed)
Patch Set: . Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_NTP_SNIPPETS_MOCK_CONTENT_SUGGESTIONS_PROVIDER_OBSERVER_H_ 5 #ifndef COMPONENTS_NTP_SNIPPETS_MOCK_CONTENT_SUGGESTIONS_PROVIDER_OBSERVER_H_
6 #define COMPONENTS_NTP_SNIPPETS_MOCK_CONTENT_SUGGESTIONS_PROVIDER_OBSERVER_H_ 6 #define COMPONENTS_NTP_SNIPPETS_MOCK_CONTENT_SUGGESTIONS_PROVIDER_OBSERVER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 19 matching lines...) Expand all
30 std::vector<ContentSuggestion> suggestions) override; 30 std::vector<ContentSuggestion> suggestions) override;
31 31
32 MOCK_METHOD3(OnNewSuggestions, 32 MOCK_METHOD3(OnNewSuggestions,
33 void(ContentSuggestionsProvider* provider, 33 void(ContentSuggestionsProvider* provider,
34 Category category, 34 Category category,
35 const std::list<ContentSuggestion>& suggestions)); 35 const std::list<ContentSuggestion>& suggestions));
36 MOCK_METHOD3(OnCategoryStatusChanged, 36 MOCK_METHOD3(OnCategoryStatusChanged,
37 void(ContentSuggestionsProvider* provider, 37 void(ContentSuggestionsProvider* provider,
38 Category category, 38 Category category,
39 CategoryStatus new_status)); 39 CategoryStatus new_status));
40 MOCK_METHOD3(OnSuggestionInvalidated, 40 MOCK_METHOD2(OnSuggestionInvalidated,
41 void(ContentSuggestionsProvider* provider, 41 void(ContentSuggestionsProvider* provider,
42 Category category, 42 const ContentSuggestion::ID& suggestion_id));
43 const std::string& suggestion_id));
44 }; 43 };
45 44
46 } // namespace ntp_snippets 45 } // namespace ntp_snippets
47 46
48 #endif // COMPONENTS_NTP_SNIPPETS_MOCK_CONTENT_SUGGESTIONS_PROVIDER_OBSERVER_H_ 47 #endif // COMPONENTS_NTP_SNIPPETS_MOCK_CONTENT_SUGGESTIONS_PROVIDER_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698