Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3828)

Unified Diff: chrome/browser/ui/fullscreen_controller_test.cc

Issue 10378061: Exit tabbed fullscreen mode on navigation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: respond to comments, remove flaky reload test Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/fullscreen_controller_test.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
+}
« no previous file with comments | « chrome/browser/ui/fullscreen_controller_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698