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 66b01e641b5e69d91edbcdaa9c9dfa785b066c9f..5fbb3112f4d14d10670e663d68aeee0c6e0072fe 100644 |
--- a/chrome/browser/notifications/notification_test_util.h |
+++ b/chrome/browser/notifications/notification_test_util.h |
@@ -15,6 +15,7 @@ |
#include "chrome/browser/notifications/notification.h" |
#include "chrome/browser/notifications/notification_ui_manager.h" |
+class Browser; |
class Profile; |
// NotificationDelegate which does nothing, useful for testing when |
@@ -73,4 +74,19 @@ class StubNotificationUIManager : public NotificationUIManager { |
DISALLOW_COPY_AND_ASSIGN(StubNotificationUIManager); |
}; |
+// Helper class that has to be created in the stack to check if the fullscreen |
+// setting of a browser is in the desired state. |
+class FullscreenStateWaiter { |
+ public: |
+ FullscreenStateWaiter(Browser* browser, bool desired_state); |
+ |
+ void Wait(); |
+ |
+ private: |
+ Browser* browser_; |
+ bool desired_state_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(FullscreenStateWaiter); |
+}; |
+ |
#endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_ |