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

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: 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..57a43922a6f76a12c05a57111c2532820a6288db 100644
--- a/chrome/browser/favicon/favicon_handler_unittest.cc
+++ b/chrome/browser/favicon/favicon_handler_unittest.cc
@@ -227,11 +227,20 @@ 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