| 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_OFFLINE_PAGES_OFFLINE_PAGES_TEST_UTILS_H_ | 5 #ifndef COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGES_TEST_UTILS_H_ |
| 6 #define COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGES_TEST_UTILS_H_ | 6 #define COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGES_TEST_UTILS_H_ |
| 7 | 7 |
| 8 #include "components/ntp_snippets/content_suggestion.h" | 8 #include "components/ntp_snippets/content_suggestion.h" |
| 9 #include "components/offline_pages/core/offline_page_item.h" | 9 #include "components/offline_pages/core/offline_page_item.h" |
| 10 #include "components/offline_pages/core/stub_offline_page_model.h" | 10 #include "components/offline_pages/core/stub_offline_page_model.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 std::vector<offline_pages::OfflinePageItem> items_; | 34 std::vector<offline_pages::OfflinePageItem> items_; |
| 35 bool is_loaded_; | 35 bool is_loaded_; |
| 36 | 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(FakeOfflinePageModel); | 37 DISALLOW_COPY_AND_ASSIGN(FakeOfflinePageModel); |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 offline_pages::OfflinePageItem CreateDummyOfflinePageItem( | 40 offline_pages::OfflinePageItem CreateDummyOfflinePageItem( |
| 41 int id, | 41 int id, |
| 42 const offline_pages::ClientId& client_id); |
| 43 |
| 44 offline_pages::OfflinePageItem CreateDummyOfflinePageItem( |
| 45 int id, |
| 42 const std::string& name_space); | 46 const std::string& name_space); |
| 43 | 47 |
| 44 void CaptureDismissedSuggestions( | 48 void CaptureDismissedSuggestions( |
| 45 std::vector<ntp_snippets::ContentSuggestion>* captured_suggestions, | 49 std::vector<ntp_snippets::ContentSuggestion>* captured_suggestions, |
| 46 std::vector<ntp_snippets::ContentSuggestion> dismissed_suggestions); | 50 std::vector<ntp_snippets::ContentSuggestion> dismissed_suggestions); |
| 47 | 51 |
| 48 } // namespace test | 52 } // namespace test |
| 49 } // namespace ntp_snippets | 53 } // namespace ntp_snippets |
| 50 | 54 |
| 51 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGES_TEST_UTILS_H_ | 55 #endif // COMPONENTS_NTP_SNIPPETS_OFFLINE_PAGES_OFFLINE_PAGES_TEST_UTILS_H_ |
| OLD | NEW |