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

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

Issue 2899253002: chromeos: Rename ash::WmShelf to Shelf (Closed)
Patch Set: cleanup Created 3 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
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 b7dc04282940c0e812574398513998f02d3b3236..01fd0ce68945887e9d1ba55b85b2004cd1db1d2c 100644
--- a/ash/system/toast/toast_manager_unittest.cc
+++ b/ash/system/toast/toast_manager_unittest.cc
@@ -6,8 +6,8 @@
#include "ash/public/cpp/config.h"
#include "ash/screen_util.h"
+#include "ash/shelf/shelf.h"
#include "ash/shelf/shelf_constants.h"
-#include "ash/shelf/wm_shelf.h"
#include "ash/shell.h"
#include "ash/test/ash_test_base.h"
#include "ash/wm_window.h"
@@ -180,8 +180,8 @@ TEST_F(ToastManagerTest, QueueMessage) {
}
TEST_F(ToastManagerTest, PositionWithVisibleBottomShelf) {
- WmShelf* shelf = GetPrimaryShelf();
- EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM, shelf->GetAlignment());
+ Shelf* shelf = GetPrimaryShelf();
+ EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM, shelf->alignment());
EXPECT_EQ(SHELF_VISIBLE, shelf->GetVisibilityState());
ShowToast("DUMMY", ToastData::kInfiniteDuration);
@@ -205,8 +205,8 @@ TEST_F(ToastManagerTest, PositionWithAutoHiddenBottomShelf) {
std::unique_ptr<aura::Window> window(
CreateTestWindowInShellWithBounds(gfx::Rect(1, 2, 3, 4)));
- WmShelf* shelf = GetPrimaryShelf();
- EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM, shelf->GetAlignment());
+ Shelf* shelf = GetPrimaryShelf();
+ EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM, shelf->alignment());
shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS);
EXPECT_EQ(SHELF_AUTO_HIDE_HIDDEN, shelf->GetAutoHideState());
@@ -224,8 +224,8 @@ TEST_F(ToastManagerTest, PositionWithAutoHiddenBottomShelf) {
}
TEST_F(ToastManagerTest, PositionWithHiddenBottomShelf) {
- WmShelf* shelf = GetPrimaryShelf();
- EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM, shelf->GetAlignment());
+ Shelf* shelf = GetPrimaryShelf();
+ EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM, shelf->alignment());
shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_ALWAYS_HIDDEN);
EXPECT_EQ(SHELF_HIDDEN, shelf->GetVisibilityState());
@@ -242,7 +242,7 @@ TEST_F(ToastManagerTest, PositionWithHiddenBottomShelf) {
}
TEST_F(ToastManagerTest, PositionWithVisibleLeftShelf) {
- WmShelf* shelf = GetPrimaryShelf();
+ Shelf* shelf = GetPrimaryShelf();
EXPECT_EQ(SHELF_VISIBLE, shelf->GetVisibilityState());
shelf->SetAlignment(SHELF_ALIGNMENT_LEFT);
@@ -272,8 +272,8 @@ TEST_F(ToastManagerTest, PositionWithUnifiedDesktop) {
display_manager()->SetUnifiedDesktopEnabled(true);
UpdateDisplay("1000x500,0+600-100x500");
- WmShelf* shelf = GetPrimaryShelf();
- EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM, shelf->GetAlignment());
+ Shelf* shelf = GetPrimaryShelf();
+ EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM, shelf->alignment());
EXPECT_EQ(SHELF_VISIBLE, shelf->GetVisibilityState());
ShowToast("DUMMY", ToastData::kInfiniteDuration);

Powered by Google App Engine
This is Rietveld 408576698