| Index: chrome/browser/notifications/notification_test_util.h | 
| =================================================================== | 
| --- chrome/browser/notifications/notification_test_util.h	(revision 65581) | 
| +++ chrome/browser/notifications/notification_test_util.h	(working copy) | 
| @@ -6,6 +6,8 @@ | 
| #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_ | 
| #pragma once | 
|  | 
| +#include <string> | 
| + | 
| #include "chrome/browser/notifications/notification_object_proxy.h" | 
| #include "chrome/browser/notifications/balloon.h" | 
| #include "gfx/size.h" | 
| @@ -35,10 +37,11 @@ | 
| // |Logger| class provided in template must implement method | 
| // static void log(string); | 
| template<class Logger> | 
| -class LoggingNotificationProxyBase : public NotificationObjectProxy { | 
| +class LoggingNotificationDelegate : public NotificationDelegate { | 
| public: | 
| -  LoggingNotificationProxyBase() : | 
| -      NotificationObjectProxy(0, 0, 0, false) {} | 
| +  explicit LoggingNotificationDelegate(std::string id) | 
| +      : notification_id_(id) { | 
| +  } | 
|  | 
| // NotificationObjectProxy override | 
| virtual void Display() { | 
| @@ -47,12 +50,20 @@ | 
| virtual void Error() { | 
| Logger::log("notification error\n"); | 
| } | 
| +  virtual void Click() { | 
| +    Logger::log("notification clicked\n"); | 
| +  } | 
| virtual void Close(bool by_user) { | 
| if (by_user) | 
| Logger::log("notification closed by user\n"); | 
| else | 
| Logger::log("notification closed by script\n"); | 
| } | 
| +  virtual std::string id() const { | 
| +    return notification_id_; | 
| +  } | 
| + private: | 
| +  std::string notification_id_; | 
| }; | 
|  | 
| // Test version of a balloon view which doesn't do anything | 
|  |