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

Unified Diff: ash/system/tray/system_tray_unittest.cc

Issue 2036353002: mash: Move ash/common/wm/shelf to ash/common/shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 4 years, 6 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/system/tray/system_tray_item.cc ('k') | ash/system/tray/tray_background_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray_unittest.cc
diff --git a/ash/system/tray/system_tray_unittest.cc b/ash/system/tray/system_tray_unittest.cc
index 729f10df48f8e44b0c58f72fe9620042d1327231..de72ee3b9c3b5ab52fe4b02128c1c123a9c15a5c 100644
--- a/ash/system/tray/system_tray_unittest.cc
+++ b/ash/system/tray/system_tray_unittest.cc
@@ -184,7 +184,7 @@ TEST_F(SystemTrayTest, SystemTrayColoringAfterAlignmentChange) {
SystemTray* tray = GetSystemTray();
ASSERT_TRUE(tray->GetWidget());
Shelf* shelf = Shelf::ForPrimaryDisplay();
- shelf->SetAlignment(wm::SHELF_ALIGNMENT_BOTTOM);
+ shelf->SetAlignment(SHELF_ALIGNMENT_BOTTOM);
// At the beginning the tray coloring is not active.
ASSERT_FALSE(tray->draw_background_as_active());
@@ -194,7 +194,7 @@ TEST_F(SystemTrayTest, SystemTrayColoringAfterAlignmentChange) {
// Changing the alignment should close the system bubble and change the
// background color.
- shelf->SetAlignment(wm::SHELF_ALIGNMENT_LEFT);
+ shelf->SetAlignment(SHELF_ALIGNMENT_LEFT);
ASSERT_FALSE(tray->draw_background_as_active());
RunAllPendingInMessageLoop();
// The bubble should already be closed by now.
@@ -359,7 +359,7 @@ TEST_F(SystemTrayTest, TrayBoundsInWidget) {
SystemTray* tray = widget->system_tray();
// Test in bottom alignment.
- shelf->SetAlignment(wm::SHELF_ALIGNMENT_BOTTOM);
+ shelf->SetAlignment(SHELF_ALIGNMENT_BOTTOM);
gfx::Rect window_bounds = widget->GetWindowBoundsInScreen();
gfx::Rect tray_bounds = tray->GetBoundsInScreen();
EXPECT_TRUE(window_bounds.bottom() >= tray_bounds.bottom());
@@ -368,7 +368,7 @@ TEST_F(SystemTrayTest, TrayBoundsInWidget) {
EXPECT_TRUE(window_bounds.y() >= tray_bounds.y());
// Test in locked alignment.
- shelf->SetAlignment(wm::SHELF_ALIGNMENT_BOTTOM_LOCKED);
+ shelf->SetAlignment(SHELF_ALIGNMENT_BOTTOM_LOCKED);
window_bounds = widget->GetWindowBoundsInScreen();
tray_bounds = tray->GetBoundsInScreen();
EXPECT_TRUE(window_bounds.bottom() >= tray_bounds.bottom());
@@ -377,7 +377,7 @@ TEST_F(SystemTrayTest, TrayBoundsInWidget) {
EXPECT_TRUE(window_bounds.y() >= tray_bounds.y());
// Test in the left alignment.
- shelf->SetAlignment(wm::SHELF_ALIGNMENT_LEFT);
+ shelf->SetAlignment(SHELF_ALIGNMENT_LEFT);
window_bounds = widget->GetWindowBoundsInScreen();
tray_bounds = tray->GetBoundsInScreen();
EXPECT_TRUE(window_bounds.bottom() >= tray_bounds.bottom());
@@ -386,7 +386,7 @@ TEST_F(SystemTrayTest, TrayBoundsInWidget) {
EXPECT_TRUE(window_bounds.y() >= tray_bounds.y());
// Test in the right alignment.
- shelf->SetAlignment(wm::SHELF_ALIGNMENT_LEFT);
+ shelf->SetAlignment(SHELF_ALIGNMENT_LEFT);
window_bounds = widget->GetWindowBoundsInScreen();
tray_bounds = tray->GetBoundsInScreen();
EXPECT_TRUE(window_bounds.bottom() >= tray_bounds.bottom());
« no previous file with comments | « ash/system/tray/system_tray_item.cc ('k') | ash/system/tray/tray_background_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698