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

Side by Side Diff: ash/shelf/shelf_locking_manager_unittest.cc

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « ash/shelf/shelf_locking_manager.cc ('k') | ash/shelf/shelf_model.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/common/shelf/shelf_locking_manager.h" 5 #include "ash/shelf/shelf_locking_manager.h"
6 6
7 #include "ash/common/session/session_state_delegate.h" 7 #include "ash/session/session_state_delegate.h"
8 #include "ash/common/shelf/wm_shelf.h" 8 #include "ash/shelf/wm_shelf.h"
9 #include "ash/test/ash_test_base.h" 9 #include "ash/test/ash_test_base.h"
10 10
11 namespace ash { 11 namespace ash {
12 namespace test { 12 namespace test {
13 13
14 // Tests the shelf behavior when the screen or session is locked. 14 // Tests the shelf behavior when the screen or session is locked.
15 class ShelfLockingManagerTest : public ash::test::AshTestBase { 15 class ShelfLockingManagerTest : public ash::test::AshTestBase {
16 public: 16 public:
17 ShelfLockingManagerTest() {} 17 ShelfLockingManagerTest() {}
18 18
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 SetScreenLocked(true); 73 SetScreenLocked(true);
74 EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM_LOCKED, shelf->GetAlignment()); 74 EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM_LOCKED, shelf->GetAlignment());
75 shelf->SetAlignment(SHELF_ALIGNMENT_RIGHT); 75 shelf->SetAlignment(SHELF_ALIGNMENT_RIGHT);
76 EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM_LOCKED, shelf->GetAlignment()); 76 EXPECT_EQ(SHELF_ALIGNMENT_BOTTOM_LOCKED, shelf->GetAlignment());
77 SetScreenLocked(false); 77 SetScreenLocked(false);
78 EXPECT_EQ(SHELF_ALIGNMENT_RIGHT, shelf->GetAlignment()); 78 EXPECT_EQ(SHELF_ALIGNMENT_RIGHT, shelf->GetAlignment());
79 } 79 }
80 80
81 } // namespace test 81 } // namespace test
82 } // namespace ash 82 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shelf/shelf_locking_manager.cc ('k') | ash/shelf/shelf_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698