Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2397)

Unified Diff: ash/shelf/shelf_widget_unittest.cc

Issue 2020623004: ash: Move shelf alignment and auto-hide calls from Shell to Shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/shelf/shelf_view_unittest.cc ('k') | ash/shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_widget_unittest.cc
diff --git a/ash/shelf/shelf_widget_unittest.cc b/ash/shelf/shelf_widget_unittest.cc
index 56799af58bffe12f4c802b4c1ee51980393ed18b..403cc204a5b1d26c03429f781032ba1593f549f2 100644
--- a/ash/shelf/shelf_widget_unittest.cc
+++ b/ash/shelf/shelf_widget_unittest.cc
@@ -42,7 +42,7 @@ typedef test::AshTestBase ShelfWidgetTest;
void TestLauncherAlignment(aura::Window* root,
wm::ShelfAlignment alignment,
const std::string& expected) {
- Shell::GetInstance()->SetShelfAlignment(alignment, root);
+ Shelf::ForWindow(root)->SetAlignment(alignment);
display::Screen* screen = display::Screen::GetScreen();
EXPECT_EQ(expected,
screen->GetDisplayNearestWindow(root).work_area().ToString());
@@ -55,9 +55,7 @@ void TestLauncherAlignment(aura::Window* root,
#define MAYBE_TestAlignment TestAlignment
#endif
TEST_F(ShelfWidgetTest, MAYBE_TestAlignment) {
- Shelf* shelf = Shelf::ForPrimaryDisplay();
UpdateDisplay("400x400");
- ASSERT_TRUE(shelf);
{
SCOPED_TRACE("Single Bottom");
TestLauncherAlignment(Shell::GetPrimaryRootWindow(),
« no previous file with comments | « ash/shelf/shelf_view_unittest.cc ('k') | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698