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

Side by Side Diff: components/ntp_snippets/offline_pages/offline_pages_test_utils.h

Issue 2684973014: Only show Last N Pages in the UI when the corresponding tab is visible. (Closed)
Patch Set: Move impl out Created 3 years, 10 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_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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698