OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |