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

Side by Side Diff: ash/system/tiles/tray_tiles_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/system/tiles/tray_tiles.cc ('k') | ash/system/toast/toast_manager_unittest.cc » ('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/system/tiles/tray_tiles.h" 5 #include "ash/system/tiles/tray_tiles.h"
6 6
7 #include "ash/common/session/session_state_delegate.h" 7 #include "ash/session/session_state_delegate.h"
8 #include "ash/common/wm_shell.h"
9 #include "ash/system/tiles/tiles_default_view.h" 8 #include "ash/system/tiles/tiles_default_view.h"
10 #include "ash/test/ash_test_base.h" 9 #include "ash/test/ash_test_base.h"
10 #include "ash/wm_shell.h"
11 #include "ui/views/controls/button/custom_button.h" 11 #include "ui/views/controls/button/custom_button.h"
12 #include "ui/views/view.h" 12 #include "ui/views/view.h"
13 13
14 namespace ash { 14 namespace ash {
15 15
16 class TrayTilesTest : public test::AshTestBase { 16 class TrayTilesTest : public test::AshTestBase {
17 public: 17 public:
18 TrayTilesTest() {} 18 TrayTilesTest() {}
19 ~TrayTilesTest() override {} 19 ~TrayTilesTest() override {}
20 20
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 TEST_F(TrayTilesTest, ButtonStatesWithLoginStatusUser) { 83 TEST_F(TrayTilesTest, ButtonStatesWithLoginStatusUser) {
84 std::unique_ptr<views::View> default_view( 84 std::unique_ptr<views::View> default_view(
85 tray_tiles()->CreateDefaultViewForTesting(LoginStatus::USER)); 85 tray_tiles()->CreateDefaultViewForTesting(LoginStatus::USER));
86 EXPECT_EQ(GetSettingsButton()->state(), views::Button::STATE_NORMAL); 86 EXPECT_EQ(GetSettingsButton()->state(), views::Button::STATE_NORMAL);
87 EXPECT_EQ(GetHelpButton()->state(), views::Button::STATE_NORMAL); 87 EXPECT_EQ(GetHelpButton()->state(), views::Button::STATE_NORMAL);
88 EXPECT_EQ(GetLockButton()->state(), views::Button::STATE_NORMAL); 88 EXPECT_EQ(GetLockButton()->state(), views::Button::STATE_NORMAL);
89 EXPECT_EQ(GetPowerButton()->state(), views::Button::STATE_NORMAL); 89 EXPECT_EQ(GetPowerButton()->state(), views::Button::STATE_NORMAL);
90 } 90 }
91 91
92 } // namespace ash 92 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/tiles/tray_tiles.cc ('k') | ash/system/toast/toast_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698