| Index: chrome/test/base/ui_test_utils.h
|
| diff --git a/chrome/test/base/ui_test_utils.h b/chrome/test/base/ui_test_utils.h
|
| index 7bbc2f13e74c13a213cc6e7ef6c8fab045feb499..68ea3c24c7c4f00e94e9b7538f9ee8242468240f 100644
|
| --- a/chrome/test/base/ui_test_utils.h
|
| +++ b/chrome/test/base/ui_test_utils.h
|
| @@ -448,6 +448,21 @@ class WindowedNotificationObserver : public content::NotificationObserver {
|
| DISALLOW_COPY_AND_ASSIGN(WindowedNotificationObserver);
|
| };
|
|
|
| +// A WindowedNotificationObserver hard-wired to observe
|
| +// chrome::NOTIFICATION_TAB_ADDED.
|
| +class WindowedTabAddedNotificationObserver
|
| + : public WindowedNotificationObserver {
|
| + public:
|
| + // Register to listen for notifications of NOTIFICATION_TAB_ADDED from either
|
| + // a specific source, or from all sources if |source| is
|
| + // NotificationService::AllSources().
|
| + WindowedTabAddedNotificationObserver(
|
| + const content::NotificationSource& source);
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(WindowedTabAddedNotificationObserver);
|
| +};
|
| +
|
| // Similar to WindowedNotificationObserver but also provides a way of retrieving
|
| // the details associated with the notification.
|
| // Note that in order to use that class the details class should be copiable,
|
|
|