| Index: ash/shelf/shelf_layout_manager_unittest.cc
|
| diff --git a/ash/shelf/shelf_layout_manager_unittest.cc b/ash/shelf/shelf_layout_manager_unittest.cc
|
| index 17538ca8aa074898a0269abce3601d909009e237..0880bf8d843bc3b565360f3377b6fd7e242d79cc 100644
|
| --- a/ash/shelf/shelf_layout_manager_unittest.cc
|
| +++ b/ash/shelf/shelf_layout_manager_unittest.cc
|
| @@ -13,6 +13,7 @@
|
| #include "ash/root_window_controller.h"
|
| #include "ash/session/session_state_delegate.h"
|
| #include "ash/shelf/shelf.h"
|
| +#include "ash/shelf/shelf_constants.h"
|
| #include "ash/shelf/shelf_layout_manager_observer.h"
|
| #include "ash/shelf/shelf_locking_manager.h"
|
| #include "ash/shelf/shelf_view.h"
|
| @@ -845,9 +846,9 @@ TEST_F(ShelfLayoutManagerTest, MAYBE_AutoHide) {
|
| // LayoutShelf() forces the animation to completion, at which point the
|
| // shelf should go off the screen.
|
| shelf->LayoutShelf();
|
| - EXPECT_EQ(root->bounds().bottom() - ShelfLayoutManager::kAutoHideSize,
|
| + EXPECT_EQ(root->bounds().bottom() - kAutoHideSize,
|
| GetShelfWidget()->GetWindowBoundsInScreen().y());
|
| - EXPECT_EQ(root->bounds().bottom() - ShelfLayoutManager::kAutoHideSize,
|
| + EXPECT_EQ(root->bounds().bottom() - kAutoHideSize,
|
| display::Screen::GetScreen()
|
| ->GetDisplayNearestWindow(root)
|
| .work_area()
|
| @@ -862,7 +863,7 @@ TEST_F(ShelfLayoutManagerTest, MAYBE_AutoHide) {
|
| shelf->LayoutShelf();
|
| EXPECT_EQ(root->bounds().bottom() - shelf->GetIdealBounds().height(),
|
| GetShelfWidget()->GetWindowBoundsInScreen().y());
|
| - EXPECT_EQ(root->bounds().bottom() - ShelfLayoutManager::kAutoHideSize,
|
| + EXPECT_EQ(root->bounds().bottom() - kAutoHideSize,
|
| display::Screen::GetScreen()
|
| ->GetDisplayNearestWindow(root)
|
| .work_area()
|
| @@ -873,7 +874,7 @@ TEST_F(ShelfLayoutManagerTest, MAYBE_AutoHide) {
|
| SetState(shelf, SHELF_AUTO_HIDE);
|
| EXPECT_EQ(SHELF_AUTO_HIDE_HIDDEN, shelf->auto_hide_state());
|
| shelf->LayoutShelf();
|
| - EXPECT_EQ(root->bounds().bottom() - ShelfLayoutManager::kAutoHideSize,
|
| + EXPECT_EQ(root->bounds().bottom() - kAutoHideSize,
|
| GetShelfWidget()->GetWindowBoundsInScreen().y());
|
|
|
| // Drag mouse to bottom of screen.
|
| @@ -1014,7 +1015,7 @@ TEST_F(ShelfLayoutManagerTest, VisibleWhenLockScreenShowing) {
|
| // LayoutShelf() forces the animation to completion, at which point the
|
| // shelf should go off the screen.
|
| shelf->LayoutShelf();
|
| - EXPECT_EQ(root->bounds().bottom() - ShelfLayoutManager::kAutoHideSize,
|
| + EXPECT_EQ(root->bounds().bottom() - kAutoHideSize,
|
| GetShelfWidget()->GetWindowBoundsInScreen().y());
|
|
|
| aura::Window* lock_container = Shell::GetContainer(
|
| @@ -1694,9 +1695,8 @@ TEST_F(ShelfLayoutManagerTest, MAYBE_SetAlignment) {
|
| EXPECT_EQ(display.bounds().height(), shelf_bounds.height());
|
| shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS);
|
| display = screen->GetDisplayNearestWindow(Shell::GetPrimaryRootWindow());
|
| - EXPECT_EQ(ShelfLayoutManager::kAutoHideSize,
|
| - display.GetWorkAreaInsets().left());
|
| - EXPECT_EQ(ShelfLayoutManager::kAutoHideSize, display.work_area().x());
|
| + EXPECT_EQ(kAutoHideSize, display.GetWorkAreaInsets().left());
|
| + EXPECT_EQ(kAutoHideSize, display.work_area().x());
|
|
|
| shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_NEVER);
|
| shelf->SetAlignment(wm::SHELF_ALIGNMENT_RIGHT);
|
| @@ -1722,10 +1722,9 @@ TEST_F(ShelfLayoutManagerTest, MAYBE_SetAlignment) {
|
| EXPECT_EQ(display.bounds().height(), shelf_bounds.height());
|
| shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS);
|
| display = screen->GetDisplayNearestWindow(Shell::GetPrimaryRootWindow());
|
| - EXPECT_EQ(ShelfLayoutManager::kAutoHideSize,
|
| - display.GetWorkAreaInsets().right());
|
| - EXPECT_EQ(ShelfLayoutManager::kAutoHideSize,
|
| - display.bounds().right() - display.work_area().right());
|
| + EXPECT_EQ(kAutoHideSize, display.GetWorkAreaInsets().right());
|
| + EXPECT_EQ(kAutoHideSize,
|
| + display.bounds().right() - display.work_area().right());
|
| }
|
|
|
| TEST_F(ShelfLayoutManagerTest, GestureEdgeSwipe) {
|
|
|