Index: ash/wm/panels/panel_window_resizer_unittest.cc |
diff --git a/ash/wm/panels/panel_window_resizer_unittest.cc b/ash/wm/panels/panel_window_resizer_unittest.cc |
index e0817547cc4d50e0e32dab6a4bc9df26be4b42c2..5b03cecb5acc38de33ffb51ddebc907a16e7a829 100644 |
--- a/ash/wm/panels/panel_window_resizer_unittest.cc |
+++ b/ash/wm/panels/panel_window_resizer_unittest.cc |
@@ -13,6 +13,7 @@ |
#include "ash/shelf/shelf_widget.h" |
#include "ash/shelf/wm_shelf.h" |
#include "ash/shell.h" |
+#include "ash/shell_port.h" |
#include "ash/test/ash_test_base.h" |
#include "ash/test/cursor_manager_test_api.h" |
#include "ash/test/test_shelf_delegate.h" |
@@ -21,7 +22,6 @@ |
#include "ash/wm/window_state.h" |
#include "ash/wm/window_state_aura.h" |
#include "ash/wm/wm_event.h" |
-#include "ash/wm_shell.h" |
#include "ash/wm_window.h" |
#include "base/i18n/rtl.h" |
#include "ui/aura/client/aura_constants.h" |
@@ -225,7 +225,7 @@ class PanelWindowResizerTransientTest |
// reattached. |
TEST_F(PanelWindowResizerTest, PanelDetachReattachBottom) { |
// TODO: investigate failure. http://crbug.com/698888. |
- if (WmShell::Get()->IsRunningInMash()) |
+ if (ShellPort::Get()->IsRunningInMash()) |
return; |
std::unique_ptr<aura::Window> window(CreatePanelWindow(gfx::Point(0, 0))); |
@@ -234,7 +234,7 @@ TEST_F(PanelWindowResizerTest, PanelDetachReattachBottom) { |
TEST_F(PanelWindowResizerTest, PanelDetachReattachLeft) { |
// TODO: investigate failure. http://crbug.com/698888. |
- if (WmShell::Get()->IsRunningInMash()) |
+ if (ShellPort::Get()->IsRunningInMash()) |
return; |
GetPrimaryShelf()->SetAlignment(SHELF_ALIGNMENT_LEFT); |
@@ -244,7 +244,7 @@ TEST_F(PanelWindowResizerTest, PanelDetachReattachLeft) { |
TEST_F(PanelWindowResizerTest, PanelDetachReattachRight) { |
// TODO: investigate failure. http://crbug.com/698888. |
- if (WmShell::Get()->IsRunningInMash()) |
+ if (ShellPort::Get()->IsRunningInMash()) |
return; |
GetPrimaryShelf()->SetAlignment(SHELF_ALIGNMENT_RIGHT); |
@@ -282,7 +282,7 @@ TEST_F(PanelWindowResizerTest, DetachThenHideShelf) { |
TEST_F(PanelWindowResizerTest, PanelDetachReattachMultipleDisplays) { |
// TODO: investigate failure. http://crbug.com/698888. |
- if (WmShell::Get()->IsRunningInMash()) |
+ if (ShellPort::Get()->IsRunningInMash()) |
return; |
UpdateDisplay("600x400,600x400"); |
@@ -294,7 +294,7 @@ TEST_F(PanelWindowResizerTest, PanelDetachReattachMultipleDisplays) { |
TEST_F(PanelWindowResizerTest, DetachThenDragAcrossDisplays) { |
// TODO: investigate failure. http://crbug.com/698888. |
- if (WmShell::Get()->IsRunningInMash()) |
+ if (ShellPort::Get()->IsRunningInMash()) |
return; |
UpdateDisplay("600x400,600x400"); |
@@ -323,7 +323,7 @@ TEST_F(PanelWindowResizerTest, DetachThenDragAcrossDisplays) { |
TEST_F(PanelWindowResizerTest, DetachAcrossDisplays) { |
// TODO: investigate failure. http://crbug.com/698888. |
- if (WmShell::Get()->IsRunningInMash()) |
+ if (ShellPort::Get()->IsRunningInMash()) |
return; |
UpdateDisplay("600x400,600x400"); |
@@ -343,7 +343,7 @@ TEST_F(PanelWindowResizerTest, DetachAcrossDisplays) { |
TEST_F(PanelWindowResizerTest, DetachThenAttachToSecondDisplay) { |
// TODO: investigate failure. http://crbug.com/698888. |
- if (WmShell::Get()->IsRunningInMash()) |
+ if (ShellPort::Get()->IsRunningInMash()) |
return; |
UpdateDisplay("600x400,600x600"); |
@@ -376,7 +376,7 @@ TEST_F(PanelWindowResizerTest, DetachThenAttachToSecondDisplay) { |
TEST_F(PanelWindowResizerTest, AttachToSecondDisplay) { |
// TODO: investigate failure. http://crbug.com/698888. |
- if (WmShell::Get()->IsRunningInMash()) |
+ if (ShellPort::Get()->IsRunningInMash()) |
return; |
UpdateDisplay("600x400,600x600"); |
@@ -402,7 +402,7 @@ TEST_F(PanelWindowResizerTest, AttachToSecondDisplay) { |
TEST_F(PanelWindowResizerTest, AttachToSecondFullscreenDisplay) { |
// TODO: investigate failure. http://crbug.com/698888. |
- if (WmShell::Get()->IsRunningInMash()) |
+ if (ShellPort::Get()->IsRunningInMash()) |
return; |
UpdateDisplay("600x400,600x600"); |
@@ -492,7 +492,7 @@ TEST_F(PanelWindowResizerTest, DragReordersPanelsVertical) { |
// The transient children should be reparented in sync with the panel. |
TEST_P(PanelWindowResizerTransientTest, PanelWithTransientChild) { |
// TODO: investigate failure. http://crbug.com/698888. |
- if (WmShell::Get()->IsRunningInMash()) |
+ if (ShellPort::Get()->IsRunningInMash()) |
return; |
std::unique_ptr<aura::Window> window(CreatePanelWindow(gfx::Point(0, 0))); |