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

Unified Diff: ash/shelf/shelf_locking_manager_unittest.cc

Issue 2899253002: chromeos: Rename ash::WmShelf to Shelf (Closed)
Patch Set: rebase 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
« no previous file with comments | « ash/shelf/shelf_locking_manager.cc ('k') | ash/shelf/shelf_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_locking_manager_unittest.cc
diff --git a/ash/shelf/shelf_locking_manager_unittest.cc b/ash/shelf/shelf_locking_manager_unittest.cc
index 8b8e60cdfc98eb8066d0a80ab9192d20c1f35eba..c2cba2d2771843f5df50060affaaca3681e1e1ea 100644
--- a/ash/shelf/shelf_locking_manager_unittest.cc
+++ b/ash/shelf/shelf_locking_manager_unittest.cc
@@ -5,7 +5,7 @@
#include "ash/shelf/shelf_locking_manager.h"
#include "ash/session/session_state_delegate.h"
-#include "ash/shelf/wm_shelf.h"
+#include "ash/shelf/shelf.h"
#include "ash/test/ash_test_base.h"
namespace ash {
@@ -34,48 +34,48 @@ class ShelfLockingManagerTest : public test::AshTestBase {
// Makes sure shelf alignment is correct for lock screen.
TEST_F(ShelfLockingManagerTest, AlignmentLockedWhileScreenLocked) {
- WmShelf* shelf = GetPrimaryShelf();
- EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM, shelf->GetAlignment());
+ Shelf* shelf = GetPrimaryShelf();
+ EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM, shelf->alignment());
shelf->SetAlignment(SHELF_ALIGNMENT_LEFT);
- EXPECT_EQ(SHELF_ALIGNMENT_LEFT, shelf->GetAlignment());
+ EXPECT_EQ(SHELF_ALIGNMENT_LEFT, shelf->alignment());
SetScreenLocked(true);
- EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM_LOCKED, shelf->GetAlignment());
+ EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM_LOCKED, shelf->alignment());
SetScreenLocked(false);
- EXPECT_EQ(SHELF_ALIGNMENT_LEFT, shelf->GetAlignment());
+ EXPECT_EQ(SHELF_ALIGNMENT_LEFT, shelf->alignment());
}
// Makes sure shelf alignment is correct for login and add user screens.
TEST_F(ShelfLockingManagerTest, AlignmentLockedWhileSessionLocked) {
- WmShelf* shelf = GetPrimaryShelf();
- EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM, shelf->GetAlignment());
+ Shelf* shelf = GetPrimaryShelf();
+ EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM, shelf->alignment());
shelf->SetAlignment(SHELF_ALIGNMENT_RIGHT);
- EXPECT_EQ(SHELF_ALIGNMENT_RIGHT, shelf->GetAlignment());
+ EXPECT_EQ(SHELF_ALIGNMENT_RIGHT, shelf->alignment());
SetSessionState(session_manager::SessionState::LOGIN_PRIMARY);
- EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM_LOCKED, shelf->GetAlignment());
+ EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM_LOCKED, shelf->alignment());
SetSessionState(session_manager::SessionState::ACTIVE);
- EXPECT_EQ(SHELF_ALIGNMENT_RIGHT, shelf->GetAlignment());
+ EXPECT_EQ(SHELF_ALIGNMENT_RIGHT, shelf->alignment());
SetSessionState(session_manager::SessionState::LOGIN_SECONDARY);
- EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM_LOCKED, shelf->GetAlignment());
+ EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM_LOCKED, shelf->alignment());
SetSessionState(session_manager::SessionState::ACTIVE);
- EXPECT_EQ(SHELF_ALIGNMENT_RIGHT, shelf->GetAlignment());
+ EXPECT_EQ(SHELF_ALIGNMENT_RIGHT, shelf->alignment());
}
// Makes sure shelf alignment changes are stored, not set, while locked.
TEST_F(ShelfLockingManagerTest, AlignmentChangesDeferredWhileLocked) {
- WmShelf* shelf = GetPrimaryShelf();
- EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM, shelf->GetAlignment());
+ Shelf* shelf = GetPrimaryShelf();
+ EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM, shelf->alignment());
SetScreenLocked(true);
- EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM_LOCKED, shelf->GetAlignment());
+ EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM_LOCKED, shelf->alignment());
shelf->SetAlignment(SHELF_ALIGNMENT_RIGHT);
- EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM_LOCKED, shelf->GetAlignment());
+ EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM_LOCKED, shelf->alignment());
SetScreenLocked(false);
- EXPECT_EQ(SHELF_ALIGNMENT_RIGHT, shelf->GetAlignment());
+ EXPECT_EQ(SHELF_ALIGNMENT_RIGHT, shelf->alignment());
}
} // namespace
« no previous file with comments | « ash/shelf/shelf_locking_manager.cc ('k') | ash/shelf/shelf_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698