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

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

Issue 684983003: Add Observer in FaviconTabHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move setting active favicon to FaviconTabHelper Created 6 years, 2 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
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 bc5c27da52cff11e4523e441d7a4b124aaa0efe9..7e5d410f93a8a8c545d18901f03abc78f1b00a2d 100644
--- a/chrome/browser/favicon/favicon_handler_unittest.cc
+++ b/chrome/browser/favicon/favicon_handler_unittest.cc
@@ -227,11 +227,16 @@ class TestFaviconDriver : public FaviconDriver {
void SetActiveURL(GURL url) { url_ = url; }
+ void OnFaviconAvailable(const gfx::Image& image) { available_image_ = image; }
+
+ const gfx::Image GetAvailableImage() { return available_image_; }
+
private:
GURL favicon_url_;
GURL url_;
gfx::Image image_;
bool favicon_validity_;
+ gfx::Image available_image_;
DISALLOW_COPY_AND_ASSIGN(TestFaviconDriver);
};

Powered by Google App Engine
This is Rietveld 408576698