Index: chrome/browser/ui/fullscreen_controller_test.cc |
diff --git a/chrome/browser/ui/fullscreen_controller_test.cc b/chrome/browser/ui/fullscreen_controller_test.cc |
index 990d4151db662a3788d2cde83e7976b7b0825f54..c4dee4b38e5cd29ceeb96b28487bf5f938387dda 100644 |
--- a/chrome/browser/ui/fullscreen_controller_test.cc |
+++ b/chrome/browser/ui/fullscreen_controller_test.cc |
@@ -10,6 +10,7 @@ |
#include "chrome/browser/ui/fullscreen_controller.h" |
#include "chrome/common/chrome_switches.h" |
#include "content/public/browser/web_contents.h" |
+#include "content/public/test/test_navigation_observer.h" |
using content::WebContents; |
@@ -114,3 +115,22 @@ void FullscreenControllerTest::DenyCurrentFullscreenOrMouseLockRequest() { |
browser()->fullscreen_controller_->GetFullscreenExitBubbleType(); |
browser()->OnDenyFullscreenPermission(type); |
} |
+ |
+void FullscreenControllerTest::AddTabAtIndexAndWait(int index, const GURL& url, |
+ content::PageTransition transition) { |
+ content::TestNavigationObserver observer( |
+ content::NotificationService::AllSources(), NULL, 1); |
+ |
+ AddTabAtIndex(index, url, transition); |
+ |
+ observer.Wait(); |
+} |
+ |
+void FullscreenControllerTest::GoBack() { |
+ content::TestNavigationObserver observer( |
+ content::NotificationService::AllSources(), NULL, 1); |
+ |
+ browser()->GoBack(CURRENT_TAB); |
+ |
+ observer.Wait(); |
+} |