| Index: ash/system/toast/toast_manager_unittest.cc
|
| diff --git a/ash/system/toast/toast_manager_unittest.cc b/ash/system/toast/toast_manager_unittest.cc
|
| index 01fd0ce68945887e9d1ba55b85b2004cd1db1d2c..30c9bfd0d04316790aec51546e4f7f2562ae4fd1 100644
|
| --- a/ash/system/toast/toast_manager_unittest.cc
|
| +++ b/ash/system/toast/toast_manager_unittest.cc
|
| @@ -10,7 +10,6 @@
|
| #include "ash/shelf/shelf_constants.h"
|
| #include "ash/shell.h"
|
| #include "ash/test/ash_test_base.h"
|
| -#include "ash/wm_window.h"
|
| #include "base/run_loop.h"
|
| #include "base/strings/string16.h"
|
| #include "base/strings/string_number_conversions.h"
|
| @@ -189,7 +188,7 @@ TEST_F(ToastManagerTest, PositionWithVisibleBottomShelf) {
|
|
|
| gfx::Rect toast_bounds = GetCurrentWidget()->GetWindowBoundsInScreen();
|
| gfx::Rect root_bounds =
|
| - ScreenUtil::GetDisplayBoundsWithShelf(shelf->GetWindow()->aura_window());
|
| + ScreenUtil::GetDisplayBoundsWithShelf(shelf->GetWindow());
|
|
|
| EXPECT_TRUE(toast_bounds.Intersects(shelf->GetUserWorkAreaBounds()));
|
| EXPECT_NEAR(root_bounds.CenterPoint().x(), toast_bounds.CenterPoint().x(), 1);
|
| @@ -215,7 +214,7 @@ TEST_F(ToastManagerTest, PositionWithAutoHiddenBottomShelf) {
|
|
|
| gfx::Rect toast_bounds = GetCurrentWidget()->GetWindowBoundsInScreen();
|
| gfx::Rect root_bounds =
|
| - ScreenUtil::GetDisplayBoundsWithShelf(shelf->GetWindow()->aura_window());
|
| + ScreenUtil::GetDisplayBoundsWithShelf(shelf->GetWindow());
|
|
|
| EXPECT_TRUE(toast_bounds.Intersects(shelf->GetUserWorkAreaBounds()));
|
| EXPECT_NEAR(root_bounds.CenterPoint().x(), toast_bounds.CenterPoint().x(), 1);
|
| @@ -234,7 +233,7 @@ TEST_F(ToastManagerTest, PositionWithHiddenBottomShelf) {
|
|
|
| gfx::Rect toast_bounds = GetCurrentWidget()->GetWindowBoundsInScreen();
|
| gfx::Rect root_bounds =
|
| - ScreenUtil::GetDisplayBoundsWithShelf(shelf->GetWindow()->aura_window());
|
| + ScreenUtil::GetDisplayBoundsWithShelf(shelf->GetWindow());
|
|
|
| EXPECT_TRUE(toast_bounds.Intersects(shelf->GetUserWorkAreaBounds()));
|
| EXPECT_NEAR(root_bounds.CenterPoint().x(), toast_bounds.CenterPoint().x(), 1);
|
| @@ -252,7 +251,7 @@ TEST_F(ToastManagerTest, PositionWithVisibleLeftShelf) {
|
| gfx::Rect toast_bounds = GetCurrentWidget()->GetWindowBoundsInScreen();
|
| gfx::RectF precise_toast_bounds(toast_bounds);
|
| gfx::Rect root_bounds =
|
| - ScreenUtil::GetDisplayBoundsWithShelf(shelf->GetWindow()->aura_window());
|
| + ScreenUtil::GetDisplayBoundsWithShelf(shelf->GetWindow());
|
|
|
| EXPECT_TRUE(toast_bounds.Intersects(shelf->GetUserWorkAreaBounds()));
|
| EXPECT_EQ(root_bounds.bottom() - 5, toast_bounds.bottom());
|
| @@ -281,7 +280,7 @@ TEST_F(ToastManagerTest, PositionWithUnifiedDesktop) {
|
|
|
| gfx::Rect toast_bounds = GetCurrentWidget()->GetWindowBoundsInScreen();
|
| gfx::Rect root_bounds =
|
| - ScreenUtil::GetDisplayBoundsWithShelf(shelf->GetWindow()->aura_window());
|
| + ScreenUtil::GetDisplayBoundsWithShelf(shelf->GetWindow());
|
|
|
| EXPECT_TRUE(toast_bounds.Intersects(shelf->GetUserWorkAreaBounds()));
|
| EXPECT_TRUE(root_bounds.Contains(toast_bounds));
|
|
|