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

Unified Diff: ash/system/toast/toast_manager_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: gyp 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
Index: ash/system/toast/toast_manager_unittest.cc
diff --git a/ash/system/toast/toast_manager_unittest.cc b/ash/system/toast/toast_manager_unittest.cc
index d33e68023103aa8cd13fcf28759a376981944320..62823825e29c95e86764f0ebcbbb7b0cc204c9a8 100644
--- a/ash/system/toast/toast_manager_unittest.cc
+++ b/ash/system/toast/toast_manager_unittest.cc
@@ -64,7 +64,7 @@ class ToastManagerTest : public test::AshTestBase {
overlay->ClickDismissButtonForTesting(DummyEvent());
}
- void SetShelfAlignment(wm::ShelfAlignment alignment) {
+ void SetShelfAlignment(ShelfAlignment alignment) {
Shelf::ForPrimaryDisplay()->SetAlignment(alignment);
}
@@ -153,7 +153,7 @@ TEST_F(ToastManagerTest, PositionWithVisibleBottomShelf) {
ShelfLayoutManager* shelf =
Shelf::ForPrimaryDisplay()->shelf_layout_manager();
SetShelfState(ash::SHELF_VISIBLE);
- SetShelfAlignment(wm::SHELF_ALIGNMENT_BOTTOM);
+ SetShelfAlignment(SHELF_ALIGNMENT_BOTTOM);
ShowToast("DUMMY", kLongLongDuration /* prevent timeout */);
EXPECT_EQ(1, GetToastSerial());
@@ -182,7 +182,7 @@ TEST_F(ToastManagerTest, PositionWithAutoHiddenBottomShelf) {
ShelfLayoutManager* shelf =
Shelf::ForPrimaryDisplay()->shelf_layout_manager();
- SetShelfAlignment(wm::SHELF_ALIGNMENT_BOTTOM);
+ SetShelfAlignment(SHELF_ALIGNMENT_BOTTOM);
SetShelfAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS);
shelf->LayoutShelf();
EXPECT_EQ(SHELF_AUTO_HIDE_HIDDEN, shelf->auto_hide_state());
@@ -204,7 +204,7 @@ TEST_F(ToastManagerTest, PositionWithHiddenBottomShelf) {
ShelfLayoutManager* shelf =
Shelf::ForPrimaryDisplay()->shelf_layout_manager();
SetShelfAutoHideBehavior(SHELF_AUTO_HIDE_ALWAYS_HIDDEN);
- SetShelfAlignment(wm::SHELF_ALIGNMENT_BOTTOM);
+ SetShelfAlignment(SHELF_ALIGNMENT_BOTTOM);
SetShelfState(ash::SHELF_HIDDEN);
ShowToast("DUMMY", kLongLongDuration /* prevent timeout */);
@@ -223,7 +223,7 @@ TEST_F(ToastManagerTest, PositionWithVisibleLeftShelf) {
ShelfLayoutManager* shelf =
Shelf::ForPrimaryDisplay()->shelf_layout_manager();
SetShelfState(ash::SHELF_VISIBLE);
- SetShelfAlignment(wm::SHELF_ALIGNMENT_LEFT);
+ SetShelfAlignment(SHELF_ALIGNMENT_LEFT);
ShowToast("DUMMY", kLongLongDuration /* prevent timeout */);
EXPECT_EQ(1, GetToastSerial());
@@ -257,7 +257,7 @@ TEST_F(ToastManagerTest, PositionWithUnifiedDesktop) {
ShelfLayoutManager* shelf =
Shelf::ForPrimaryDisplay()->shelf_layout_manager();
SetShelfState(ash::SHELF_VISIBLE);
- SetShelfAlignment(wm::SHELF_ALIGNMENT_BOTTOM);
+ SetShelfAlignment(SHELF_ALIGNMENT_BOTTOM);
ShowToast("DUMMY", kLongLongDuration /* prevent timeout */);
EXPECT_EQ(1, GetToastSerial());

Powered by Google App Engine
This is Rietveld 408576698