| Index: ash/wm/workspace/workspace_window_resizer_unittest.cc
|
| diff --git a/ash/wm/workspace/workspace_window_resizer_unittest.cc b/ash/wm/workspace/workspace_window_resizer_unittest.cc
|
| index 83b57707bd2f8aa707811cb684f3340504944ed9..f26460af7893ff67c4f2b3a76b4f8ca1e9700424 100644
|
| --- a/ash/wm/workspace/workspace_window_resizer_unittest.cc
|
| +++ b/ash/wm/workspace/workspace_window_resizer_unittest.cc
|
| @@ -4,12 +4,12 @@
|
|
|
| #include "ash/wm/workspace/workspace_window_resizer.h"
|
|
|
| +#include "ash/screen_ash.h"
|
| #include "ash/shell.h"
|
| #include "ash/test/ash_test_base.h"
|
| #include "ash/wm/property_util.h"
|
| #include "base/string_number_conversions.h"
|
| #include "ui/aura/root_window.h"
|
| -#include "ui/aura/screen_aura.h"
|
| #include "ui/aura/test/test_window_delegate.h"
|
| #include "ui/base/hit_test.h"
|
|
|
| @@ -52,7 +52,7 @@ class WorkspaceWindowResizerTest : public test::AshTestBase {
|
| root->SetBounds(gfx::Rect(0, 0, 800, kRootHeight));
|
| gfx::Rect root_bounds(root->bounds());
|
| EXPECT_EQ(kRootHeight, root_bounds.height());
|
| - root->SetScreenWorkAreaInsets(gfx::Insets());
|
| + Shell::GetInstance()->SetScreenWorkAreaInsets(gfx::Insets());
|
| window_.reset(new aura::Window(&delegate_));
|
| window_->Init(ui::Layer::LAYER_NOT_DRAWN);
|
| window_->SetParent(Shell::GetInstance()->GetRootWindow());
|
| @@ -547,7 +547,7 @@ TEST_F(WorkspaceWindowResizerTest, AttachedResize_BOTTOM_2_REMEMBER) {
|
| TEST_F(WorkspaceWindowResizerTest, AttachedResize_BOTTOM_3) {
|
| aura::RootWindow* root = Shell::GetInstance()->GetRootWindow();
|
| root->SetBounds(gfx::Rect(0, 0, 600, 800));
|
| - root->SetScreenWorkAreaInsets(gfx::Insets());
|
| + Shell::GetInstance()->SetScreenWorkAreaInsets(gfx::Insets());
|
|
|
| window_->SetBounds(gfx::Rect( 300, 100, 300, 200));
|
| window2_->SetBounds(gfx::Rect(300, 300, 200, 150));
|
| @@ -589,7 +589,7 @@ TEST_F(WorkspaceWindowResizerTest, AttachedResize_BOTTOM_3) {
|
| TEST_F(WorkspaceWindowResizerTest, AttachedResize_BOTTOM_RememberHeight) {
|
| aura::RootWindow* root = Shell::GetInstance()->GetRootWindow();
|
| root->SetBounds(gfx::Rect(0, 0, 600, 800));
|
| - root->SetScreenWorkAreaInsets(gfx::Insets());
|
| + Shell::GetInstance()->SetScreenWorkAreaInsets(gfx::Insets());
|
|
|
| window_->SetBounds(gfx::Rect( 300, 100, 300, 200));
|
| window2_->SetBounds(gfx::Rect(300, 300, 200, 150));
|
|
|