| Index: ash/wm/shelf_layout_manager_unittest.cc
|
| diff --git a/ash/wm/shelf_layout_manager_unittest.cc b/ash/wm/shelf_layout_manager_unittest.cc
|
| index 4428c5d548973b09668fe80be503a71f87265b61..14db6592bf97dc4f1b3b5f85a3003d966ac9552a 100644
|
| --- a/ash/wm/shelf_layout_manager_unittest.cc
|
| +++ b/ash/wm/shelf_layout_manager_unittest.cc
|
| @@ -418,51 +418,6 @@ TEST_F(ShelfLayoutManagerTest, VisibleWhenLockScreenShowing) {
|
| EXPECT_EQ(ShelfLayoutManager::AUTO_HIDE, shelf->visibility_state());
|
| }
|
|
|
| -// Assertions around SetAutoHideBehavior.
|
| -TEST_F(ShelfLayoutManagerTest, SetAutoHideBehavior) {
|
| - // Since ShelfLayoutManager queries for mouse location, move the mouse so
|
| - // it isn't over the shelf.
|
| - aura::test::EventGenerator generator(
|
| - Shell::GetPrimaryRootWindow(), gfx::Point());
|
| - generator.MoveMouseTo(0, 0);
|
| -
|
| - ShelfLayoutManager* shelf = GetShelfLayoutManager();
|
| - views::Widget* widget = new views::Widget;
|
| - views::Widget::InitParams params(views::Widget::InitParams::TYPE_WINDOW);
|
| - params.bounds = gfx::Rect(0, 0, 200, 200);
|
| - // Widget is now owned by the parent window.
|
| - widget->Init(params);
|
| - widget->Show();
|
| - aura::Window* window = widget->GetNativeWindow();
|
| - gfx::Rect display_bounds(
|
| - gfx::Screen::GetDisplayNearestWindow(window).bounds());
|
| -
|
| - shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS);
|
| - EXPECT_EQ(ShelfLayoutManager::AUTO_HIDE, shelf->visibility_state());
|
| - EXPECT_EQ(display_bounds.bottom() - ShelfLayoutManager::kAutoHideSize,
|
| - shelf->GetMaximizedWindowBounds(window).bottom());
|
| -
|
| - shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_NEVER);
|
| - EXPECT_EQ(ShelfLayoutManager::VISIBLE, shelf->visibility_state());
|
| - EXPECT_GT(display_bounds.bottom() - ShelfLayoutManager::kAutoHideSize,
|
| - shelf->GetMaximizedWindowBounds(window).bottom());
|
| -
|
| - widget->Maximize();
|
| - EXPECT_EQ(ShelfLayoutManager::VISIBLE, shelf->visibility_state());
|
| - EXPECT_EQ(gfx::Screen::GetDisplayNearestWindow(window).work_area().bottom(),
|
| - widget->GetWorkAreaBoundsInScreen().bottom());
|
| -
|
| - shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS);
|
| - EXPECT_EQ(ShelfLayoutManager::AUTO_HIDE, shelf->visibility_state());
|
| - EXPECT_EQ(gfx::Screen::GetDisplayNearestWindow(window).work_area().bottom(),
|
| - widget->GetWorkAreaBoundsInScreen().bottom());
|
| -
|
| - shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_NEVER);
|
| - EXPECT_EQ(ShelfLayoutManager::VISIBLE, shelf->visibility_state());
|
| - EXPECT_EQ(gfx::Screen::GetDisplayNearestWindow(window).work_area().bottom(),
|
| - widget->GetWorkAreaBoundsInScreen().bottom());
|
| -}
|
| -
|
| // Verifies the shelf is visible when status/launcher is focused.
|
| TEST_F(ShelfLayoutManagerTest, VisibleWhenStatusOrLauncherFocused) {
|
| // Since ShelfLayoutManager queries for mouse location, move the mouse so
|
|
|