Chromium Code Reviews| Index: ash/shelf/shelf_widget_unittest.cc |
| diff --git a/ash/shelf/shelf_widget_unittest.cc b/ash/shelf/shelf_widget_unittest.cc |
| index f043f342fe6646fa540643d70023e9af887f19d6..087084a725b37ec5980b2c9376bb44c48a32208a 100644 |
| --- a/ash/shelf/shelf_widget_unittest.cc |
| +++ b/ash/shelf/shelf_widget_unittest.cc |
| @@ -4,6 +4,7 @@ |
| #include "ash/shelf/shelf_widget.h" |
| +#include "ash/ash_switches.h" |
|
James Cook
2013/08/22 00:19:12
Is this needed?
Harry McCleave
2013/08/27 00:37:00
Done.
|
| #include "ash/launcher/launcher.h" |
| #include "ash/launcher/launcher_button.h" |
| #include "ash/launcher/launcher_model.h" |
| @@ -14,6 +15,7 @@ |
| #include "ash/test/ash_test_base.h" |
| #include "ash/test/launcher_view_test_api.h" |
| #include "ash/wm/window_util.h" |
| +#include "base/command_line.h" |
|
James Cook
2013/08/22 00:19:12
Is this needed?
Harry McCleave
2013/08/27 00:37:00
Done.
|
| #include "ui/aura/root_window.h" |
| #include "ui/gfx/display.h" |
| #include "ui/gfx/screen.h" |
| @@ -72,19 +74,19 @@ TEST_F(ShelfWidgetTest, TestAlignment) { |
| SCOPED_TRACE("Single Bottom"); |
| TestLauncherAlignment(Shell::GetPrimaryRootWindow(), |
| SHELF_ALIGNMENT_BOTTOM, |
| - "0,0 400x352"); |
| + "0,0 400x353"); |
| } |
| { |
| SCOPED_TRACE("Single Right"); |
| TestLauncherAlignment(Shell::GetPrimaryRootWindow(), |
| SHELF_ALIGNMENT_RIGHT, |
| - "0,0 352x400"); |
| + "0,0 353x400"); |
| } |
| { |
| SCOPED_TRACE("Single Left"); |
| TestLauncherAlignment(Shell::GetPrimaryRootWindow(), |
| SHELF_ALIGNMENT_LEFT, |
| - "48,0 352x400"); |
| + "47,0 353x400"); |
| } |
| if (!SupportsMultipleDisplays()) |
| return; |
| @@ -95,37 +97,37 @@ TEST_F(ShelfWidgetTest, TestAlignment) { |
| SCOPED_TRACE("Primary Bottom"); |
| TestLauncherAlignment(root_windows[0], |
| SHELF_ALIGNMENT_BOTTOM, |
| - "0,0 300x252"); |
| + "0,0 300x253"); |
| } |
| { |
| SCOPED_TRACE("Primary Right"); |
| TestLauncherAlignment(root_windows[0], |
| SHELF_ALIGNMENT_RIGHT, |
| - "0,0 252x300"); |
| + "0,0 253x300"); |
| } |
| { |
| SCOPED_TRACE("Primary Left"); |
| TestLauncherAlignment(root_windows[0], |
| SHELF_ALIGNMENT_LEFT, |
| - "48,0 252x300"); |
| + "47,0 253x300"); |
| } |
| { |
| SCOPED_TRACE("Secondary Bottom"); |
| TestLauncherAlignment(root_windows[1], |
| SHELF_ALIGNMENT_BOTTOM, |
| - "300,0 500x452"); |
| + "300,0 500x453"); |
| } |
| { |
| SCOPED_TRACE("Secondary Right"); |
| TestLauncherAlignment(root_windows[1], |
| SHELF_ALIGNMENT_RIGHT, |
| - "300,0 452x500"); |
| + "300,0 453x500"); |
| } |
| { |
| SCOPED_TRACE("Secondary Left"); |
| TestLauncherAlignment(root_windows[1], |
| SHELF_ALIGNMENT_LEFT, |
| - "348,0 452x500"); |
| + "347,0 453x500"); |
| } |
| } |