| Index: ash/wm/immersive_fullscreen_controller_unittest.cc
|
| diff --git a/ash/wm/immersive_fullscreen_controller_unittest.cc b/ash/wm/immersive_fullscreen_controller_unittest.cc
|
| index 18b07f7b6e1b5a19834e23c51c497e774a799dda..2c65dfb87eadc03fde9cc792983a68f7bf93c085 100644
|
| --- a/ash/wm/immersive_fullscreen_controller_unittest.cc
|
| +++ b/ash/wm/immersive_fullscreen_controller_unittest.cc
|
| @@ -1035,39 +1035,40 @@ TEST_F(ImmersiveFullscreenControllerTest, Bubbles) {
|
| // immersive fullscreen and that the shelf's state before entering immersive
|
| // fullscreen is restored upon exiting immersive fullscreen.
|
| TEST_F(ImmersiveFullscreenControllerTest, Shelf) {
|
| - ash::ShelfLayoutManager* shelf =
|
| - ash::Shell::GetPrimaryRootWindowController()->GetShelfLayoutManager();
|
| + ShelfLayoutManager* shelf_layout_manager =
|
| + Shell::GetPrimaryRootWindowController()->GetShelfLayoutManager();
|
|
|
| // Shelf is visible by default.
|
| window()->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL);
|
| ASSERT_FALSE(controller()->IsEnabled());
|
| - ASSERT_EQ(ash::SHELF_VISIBLE, shelf->visibility_state());
|
| + ASSERT_EQ(SHELF_VISIBLE, shelf_layout_manager->visibility_state());
|
|
|
| // Entering immersive fullscreen sets the shelf to auto hide.
|
| window()->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_FULLSCREEN);
|
| SetEnabled(true);
|
| - EXPECT_EQ(ash::SHELF_AUTO_HIDE, shelf->visibility_state());
|
| + EXPECT_EQ(SHELF_AUTO_HIDE, shelf_layout_manager->visibility_state());
|
|
|
| // Disabling immersive fullscreen puts it back.
|
| SetEnabled(false);
|
| window()->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL);
|
| ASSERT_FALSE(controller()->IsEnabled());
|
| - EXPECT_EQ(ash::SHELF_VISIBLE, shelf->visibility_state());
|
| + EXPECT_EQ(SHELF_VISIBLE, shelf_layout_manager->visibility_state());
|
|
|
| // The user could toggle the shelf auto-hide behavior.
|
| - shelf->SetAutoHideBehavior(ash::SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS);
|
| - EXPECT_EQ(ash::SHELF_AUTO_HIDE, shelf->visibility_state());
|
| + Shelf* shelf = Shelf::ForPrimaryDisplay();
|
| + shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS);
|
| + EXPECT_EQ(SHELF_AUTO_HIDE, shelf_layout_manager->visibility_state());
|
|
|
| // Entering immersive fullscreen keeps auto-hide.
|
| window()->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_FULLSCREEN);
|
| SetEnabled(true);
|
| - EXPECT_EQ(ash::SHELF_AUTO_HIDE, shelf->visibility_state());
|
| + EXPECT_EQ(SHELF_AUTO_HIDE, shelf_layout_manager->visibility_state());
|
|
|
| // Disabling immersive fullscreen maintains the user's auto-hide selection.
|
| SetEnabled(false);
|
| window()->SetProperty(aura::client::kShowStateKey,
|
| ui::SHOW_STATE_NORMAL);
|
| - EXPECT_EQ(ash::SHELF_AUTO_HIDE, shelf->visibility_state());
|
| + EXPECT_EQ(SHELF_AUTO_HIDE, shelf_layout_manager->visibility_state());
|
| }
|
|
|
| } // namespase ash
|
|
|