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

Unified Diff: chrome/browser/favicon/favicon_handler_unittest.cc

Issue 1064823002: Componentize FaviconTabHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@favicon-notification
Patch Set: Fix BUILD.gn Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/favicon/favicon_tab_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/favicon/favicon_handler_unittest.cc
diff --git a/chrome/browser/favicon/favicon_handler_unittest.cc b/chrome/browser/favicon/favicon_handler_unittest.cc
index 5a70ff44222d8434c8462848c79026d75c22ad1f..e01f5859b0d03ed9feace1bae623fb5701fa14a7 100644
--- a/chrome/browser/favicon/favicon_handler_unittest.cc
+++ b/chrome/browser/favicon/favicon_handler_unittest.cc
@@ -183,6 +183,35 @@ class TestFaviconDriver : public favicon::FaviconDriver {
~TestFaviconDriver() override {}
+ // favicon::FaviconDriver implementation.
+ void FetchFavicon(const GURL& url) override {
+ ADD_FAILURE() << "TestFaviconDriver::FetchFavicon() "
+ << "should never be called in tests.";
+ }
+
+ void SaveFavicon() override {
+ ADD_FAILURE() << "TestFaviconDriver::SaveFavicon() "
+ << "should never be called in tests.";
+ }
+
+ gfx::Image GetFavicon() const override {
+ ADD_FAILURE() << "TestFaviconDriver::GetFavicon() "
+ << "should never be called in tests.";
+ return gfx::Image();
+ }
+
+ bool FaviconIsValid() const override {
+ ADD_FAILURE() << "TestFaviconDriver::FaviconIsValid() "
+ << "should never be called in tests.";
+ return false;
+ }
+
+ bool HasPendingTasksForTest() override {
+ ADD_FAILURE() << "TestFaviconDriver::HasPendingTasksForTest() "
+ << "should never be called in tests.";
+ return false;
+ }
+
int StartDownload(const GURL& url, int max_bitmap_size) override {
ADD_FAILURE() << "TestFaviconDriver::StartDownload() "
<< "should never be called in tests.";
@@ -231,8 +260,6 @@ class TestFaviconDriver : public favicon::FaviconDriver {
SetActiveFaviconImage(image);
}
- void NotifyFaviconUpdated(bool icon_url_changed) override {}
-
size_t num_active_favicon() const { return num_active_favicon_; }
size_t num_favicon_available() const { return num_favicon_available_; }
void ResetNumActiveFavicon() { num_active_favicon_ = 0; }
« no previous file with comments | « no previous file | chrome/browser/favicon/favicon_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698