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

Unified Diff: ash/system/toast/toast_manager_unittest.cc

Issue 1914093002: Refactors DockedWindowLayoutManager in terms of ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nuke_aura_window
Patch Set: comment Created 4 years, 8 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/status_area_widget_delegate.cc ('k') | ash/system/tray/system_tray.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d31eccb84a188a7e33b53cf906d3ab97777edc14..fc6ec7f6941e209ee3e12b47cd72112ffa0a6f35 100644
--- a/ash/system/toast/toast_manager_unittest.cc
+++ b/ash/system/toast/toast_manager_unittest.cc
@@ -63,7 +63,7 @@ class ToastManagerTest : public test::AshTestBase {
overlay->ClickDismissButtonForTesting(DummyEvent());
}
- void SetShelfAlignment(ShelfAlignment alignment) {
+ void SetShelfAlignment(wm::ShelfAlignment alignment) {
Shelf::ForPrimaryDisplay()->shelf_layout_manager()->SetAlignment(alignment);
}
@@ -144,7 +144,7 @@ TEST_F(ToastManagerTest, PositionWithVisibleBottomShelf) {
ShelfLayoutManager* shelf =
Shelf::ForPrimaryDisplay()->shelf_layout_manager();
SetShelfState(ash::SHELF_VISIBLE);
- SetShelfAlignment(ash::SHELF_ALIGNMENT_BOTTOM);
+ SetShelfAlignment(wm::SHELF_ALIGNMENT_BOTTOM);
manager()->Show("DUMMY", kLongLongDuration /* prevent timeout */);
EXPECT_EQ(1, GetToastId());
@@ -173,7 +173,7 @@ TEST_F(ToastManagerTest, PositionWithAutoHiddenBottomShelf) {
ShelfLayoutManager* shelf =
Shelf::ForPrimaryDisplay()->shelf_layout_manager();
- SetShelfAlignment(ash::SHELF_ALIGNMENT_BOTTOM);
+ SetShelfAlignment(wm::SHELF_ALIGNMENT_BOTTOM);
SetShelfAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS);
shelf->LayoutShelf();
EXPECT_EQ(SHELF_AUTO_HIDE_HIDDEN, shelf->auto_hide_state());
@@ -195,7 +195,7 @@ TEST_F(ToastManagerTest, PositionWithHiddenBottomShelf) {
ShelfLayoutManager* shelf =
Shelf::ForPrimaryDisplay()->shelf_layout_manager();
SetShelfAutoHideBehavior(SHELF_AUTO_HIDE_ALWAYS_HIDDEN);
- SetShelfAlignment(ash::SHELF_ALIGNMENT_BOTTOM);
+ SetShelfAlignment(wm::SHELF_ALIGNMENT_BOTTOM);
SetShelfState(ash::SHELF_HIDDEN);
manager()->Show("DUMMY", kLongLongDuration /* prevent timeout */);
@@ -214,7 +214,7 @@ TEST_F(ToastManagerTest, PositionWithVisibleLeftShelf) {
ShelfLayoutManager* shelf =
Shelf::ForPrimaryDisplay()->shelf_layout_manager();
SetShelfState(ash::SHELF_VISIBLE);
- SetShelfAlignment(ash::SHELF_ALIGNMENT_LEFT);
+ SetShelfAlignment(wm::SHELF_ALIGNMENT_LEFT);
manager()->Show("DUMMY", kLongLongDuration /* prevent timeout */);
EXPECT_EQ(1, GetToastId());
@@ -248,7 +248,7 @@ TEST_F(ToastManagerTest, PositionWithUnifiedDesktop) {
ShelfLayoutManager* shelf =
Shelf::ForPrimaryDisplay()->shelf_layout_manager();
SetShelfState(ash::SHELF_VISIBLE);
- SetShelfAlignment(ash::SHELF_ALIGNMENT_BOTTOM);
+ SetShelfAlignment(wm::SHELF_ALIGNMENT_BOTTOM);
manager()->Show("DUMMY", kLongLongDuration /* prevent timeout */);
EXPECT_EQ(1, GetToastId());
« no previous file with comments | « ash/system/status_area_widget_delegate.cc ('k') | ash/system/tray/system_tray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698