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..e7c68a62b155ae9e885879d644dd1f4f7a2d46b3 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,20 @@ 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: |
+ explicit FullscreenStateWaiter(Browser* browser, bool desired_state); |
Peter Beverloo
2016/09/29 21:30:52
nit: no need to make this explicit (we only do tha
bmalcolm
2016/09/29 21:37:13
Done.
|
+ |
+ void Wait(); |
+ |
+ private: |
+ Browser* browser_; |
+ bool desired_state_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(FullscreenStateWaiter); |
+}; |
+ |
Peter Beverloo
2016/09/29 21:30:52
micro nit: no double blank lines
bmalcolm
2016/09/29 21:37:13
Done.
|
+ |
#endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_ |