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

Side by Side Diff: components/favicon/core/test/mock_favicon_service.h

Issue 2856873002: [Thumbnails DB] Allow setting last_requested time when accessing favicons. (Closed)
Patch Set: Peter's comments Created 3 years, 6 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_FAVICON_CORE_TEST_MOCK_FAVICON_SERVICE_H_ 5 #ifndef COMPONENTS_FAVICON_CORE_TEST_MOCK_FAVICON_SERVICE_H_
6 #define COMPONENTS_FAVICON_CORE_TEST_MOCK_FAVICON_SERVICE_H_ 6 #define COMPONENTS_FAVICON_CORE_TEST_MOCK_FAVICON_SERVICE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/task/cancelable_task_tracker.h" 10 #include "base/task/cancelable_task_tracker.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 favicon_base::IconType icon_type, 82 favicon_base::IconType icon_type,
83 int desired_size_in_dip, 83 int desired_size_in_dip,
84 const favicon_base::FaviconResultsCallback& callback, 84 const favicon_base::FaviconResultsCallback& callback,
85 base::CancelableTaskTracker* tracker)); 85 base::CancelableTaskTracker* tracker));
86 MOCK_METHOD3(GetLargestRawFaviconForID, 86 MOCK_METHOD3(GetLargestRawFaviconForID,
87 base::CancelableTaskTracker::TaskId( 87 base::CancelableTaskTracker::TaskId(
88 favicon_base::FaviconID favicon_id, 88 favicon_base::FaviconID favicon_id,
89 const favicon_base::FaviconRawBitmapCallback& callback, 89 const favicon_base::FaviconRawBitmapCallback& callback,
90 base::CancelableTaskTracker* tracker)); 90 base::CancelableTaskTracker* tracker));
91 MOCK_METHOD1(SetFaviconOutOfDateForPage, void(const GURL& page_url)); 91 MOCK_METHOD1(SetFaviconOutOfDateForPage, void(const GURL& page_url));
92 MOCK_METHOD1(TouchOnDemandFavicon, void(const GURL& icon_url));
92 MOCK_METHOD1(SetImportedFavicons, 93 MOCK_METHOD1(SetImportedFavicons,
93 void(const favicon_base::FaviconUsageDataList& favicon_usage)); 94 void(const favicon_base::FaviconUsageDataList& favicon_usage));
94 MOCK_METHOD5(MergeFavicon, 95 MOCK_METHOD5(MergeFavicon,
95 void(const GURL& page_url, 96 void(const GURL& page_url,
96 const GURL& icon_url, 97 const GURL& icon_url,
97 favicon_base::IconType icon_type, 98 favicon_base::IconType icon_type,
98 scoped_refptr<base::RefCountedMemory> bitmap_data, 99 scoped_refptr<base::RefCountedMemory> bitmap_data,
99 const gfx::Size& pixel_size)); 100 const gfx::Size& pixel_size));
100 MOCK_METHOD4(SetFavicons, 101 MOCK_METHOD4(SetFavicons,
101 void(const GURL& page_url, 102 void(const GURL& page_url,
102 const GURL& icon_url, 103 const GURL& icon_url,
103 favicon_base::IconType icon_type, 104 favicon_base::IconType icon_type,
104 const gfx::Image& image)); 105 const gfx::Image& image));
105 MOCK_METHOD5(SetLastResortFavicons, 106 MOCK_METHOD5(SetOnDemandFavicons,
106 void(const GURL& page_url, 107 void(const GURL& page_url,
107 const GURL& icon_url, 108 const GURL& icon_url,
108 favicon_base::IconType icon_type, 109 favicon_base::IconType icon_type,
109 const gfx::Image& image, 110 const gfx::Image& image,
110 base::Callback<void(bool)> callback)); 111 base::Callback<void(bool)> callback));
111 MOCK_METHOD1(UnableToDownloadFavicon, void(const GURL& icon_url)); 112 MOCK_METHOD1(UnableToDownloadFavicon, void(const GURL& icon_url));
112 MOCK_CONST_METHOD1(WasUnableToDownloadFavicon, bool(const GURL& icon_url)); 113 MOCK_CONST_METHOD1(WasUnableToDownloadFavicon, bool(const GURL& icon_url));
113 MOCK_METHOD0(ClearUnableToDownloadFavicons, void()); 114 MOCK_METHOD0(ClearUnableToDownloadFavicons, void());
114 }; 115 };
115 116
116 } // namespace favicon 117 } // namespace favicon
117 118
118 #endif // COMPONENTS_FAVICON_CORE_TEST_MOCK_FAVICON_SERVICE_H_ 119 #endif // COMPONENTS_FAVICON_CORE_TEST_MOCK_FAVICON_SERVICE_H_
OLDNEW
« no previous file with comments | « components/favicon/core/large_icon_service_unittest.cc ('k') | components/history/core/browser/android/favicon_sql_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698