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

Unified Diff: chrome/browser/ui/exclusive_access/fullscreen_controller_state_unittest.cc

Issue 836933005: Refactor fullscreen_controller. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to TOT Created 5 years, 11 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
Index: chrome/browser/ui/exclusive_access/fullscreen_controller_state_unittest.cc
diff --git a/chrome/browser/ui/exclusive_access/fullscreen_controller_state_unittest.cc b/chrome/browser/ui/exclusive_access/fullscreen_controller_state_unittest.cc
index 541a8b5c109ef57ec2e284f030b5538582f82348..31ef25230b0fbaa2a3070651f3c1c6f741c8da47 100644
--- a/chrome/browser/ui/exclusive_access/fullscreen_controller_state_unittest.cc
+++ b/chrome/browser/ui/exclusive_access/fullscreen_controller_state_unittest.cc
@@ -428,7 +428,9 @@ TEST_F(FullscreenControllerStateUnitTest, ExitFullscreenViaBrowserWindow) {
browser()->window()->ExitFullscreen();
ChangeWindowFullscreenState();
EXPECT_EQ(EXCLUSIVE_ACCESS_BUBBLE_TYPE_NONE,
- browser()->fullscreen_controller()->GetExclusiveAccessBubbleType());
+ browser()
+ ->exclusive_access_manager()
+ ->GetExclusiveAccessExitBubbleType());
}
// Test that switching tabs takes the browser out of tab fullscreen.
@@ -763,8 +765,9 @@ TEST_F(FullscreenControllerStateUnitTest,
EXPECT_TRUE(wc_delegate->IsFullscreenForTabOrPending(tab));
EXPECT_TRUE(second_wc_delegate->IsFullscreenForTabOrPending(tab));
EXPECT_FALSE(GetFullscreenController()->IsWindowFullscreenForTabOrPending());
- EXPECT_FALSE(second_browser->fullscreen_controller()->
- IsWindowFullscreenForTabOrPending());
+ EXPECT_FALSE(second_browser->exclusive_access_manager()
+ ->fullscreen_controller()
+ ->IsWindowFullscreenForTabOrPending());
// Now, detach and reattach it back to the first browser window. Again, the
// tab should remain in fullscreen mode and neither browser window should have
@@ -777,8 +780,9 @@ TEST_F(FullscreenControllerStateUnitTest,
EXPECT_TRUE(wc_delegate->IsFullscreenForTabOrPending(tab));
EXPECT_TRUE(second_wc_delegate->IsFullscreenForTabOrPending(tab));
EXPECT_FALSE(GetFullscreenController()->IsWindowFullscreenForTabOrPending());
- EXPECT_FALSE(second_browser->fullscreen_controller()->
- IsWindowFullscreenForTabOrPending());
+ EXPECT_FALSE(second_browser->exclusive_access_manager()
+ ->fullscreen_controller()
+ ->IsWindowFullscreenForTabOrPending());
// Exit fullscreen.
ASSERT_TRUE(InvokeEvent(TAB_FULLSCREEN_FALSE));
@@ -786,8 +790,9 @@ TEST_F(FullscreenControllerStateUnitTest,
EXPECT_FALSE(wc_delegate->IsFullscreenForTabOrPending(tab));
EXPECT_FALSE(second_wc_delegate->IsFullscreenForTabOrPending(tab));
EXPECT_FALSE(GetFullscreenController()->IsWindowFullscreenForTabOrPending());
- EXPECT_FALSE(second_browser->fullscreen_controller()->
- IsWindowFullscreenForTabOrPending());
+ EXPECT_FALSE(second_browser->exclusive_access_manager()
+ ->fullscreen_controller()
+ ->IsWindowFullscreenForTabOrPending());
// Required tear-down specific to this test.
second_browser->tab_strip_model()->CloseAllTabs();

Powered by Google App Engine
This is Rietveld 408576698