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

Unified Diff: chrome/browser/notifications/notification_test_util.h

Issue 10537158: Add support for Ash to Notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/notifications/notification_test_util.h
diff --git a/chrome/browser/notifications/notification_test_util.h b/chrome/browser/notifications/notification_test_util.h
index 7ea3ac73cf6517ff1c055d6b705ad05f29382677..418f6723cf1329c152d6a49820f97fcf3a76043a 100644
--- a/chrome/browser/notifications/notification_test_util.h
+++ b/chrome/browser/notifications/notification_test_util.h
@@ -24,6 +24,7 @@ class MockNotificationDelegate : public NotificationDelegate {
virtual void Close(bool by_user) OVERRIDE {}
virtual void Click() OVERRIDE {}
virtual std::string id() const OVERRIDE;
+ virtual content::RenderViewHost* GetRenderViewHost() const OVERRIDE;
private:
virtual ~MockNotificationDelegate();
@@ -47,24 +48,28 @@ class LoggingNotificationDelegate : public NotificationDelegate {
}
// NotificationObjectProxy override
- virtual void Display() {
+ virtual void Display() OVERRIDE {
Logger::log("notification displayed\n");
}
- virtual void Error() {
+ virtual void Error() OVERRIDE {
Logger::log("notification error\n");
}
- virtual void Click() {
+ virtual void Click() OVERRIDE {
Logger::log("notification clicked\n");
}
- virtual void Close(bool by_user) {
+ virtual void Close(bool by_user) OVERRIDE {
if (by_user)
Logger::log("notification closed by user\n");
else
Logger::log("notification closed by script\n");
}
- virtual std::string id() const {
+ virtual std::string id() const OVERRIDE {
return notification_id_;
}
+ virtual content::RenderViewHost* GetRenderViewHost() const OVERRIDE {
+ return NULL;
+ }
+
private:
std::string notification_id_;

Powered by Google App Engine
This is Rietveld 408576698