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

Side by Side Diff: ash/system/tiles/tray_tiles_unittest.cc

Issue 2884323002: Leave ChromeOS system menu open when toggling nightlight. (Closed)
Patch Set: fix messed up include 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 unified diff | Download patch
« no previous file with comments | « ash/system/tiles/tiles_default_view.cc ('k') | ash/system/tray/system_menu_button.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/system/tiles/tray_tiles.h" 5 #include "ash/system/tiles/tray_tiles.h"
6 6
7 #include "ash/system/tiles/tiles_default_view.h" 7 #include "ash/system/tiles/tiles_default_view.h"
8 #include "ash/system/tray/system_menu_button.h"
8 #include "ash/test/ash_test_base.h" 9 #include "ash/test/ash_test_base.h"
9 #include "ash/test/test_session_controller_client.h" 10 #include "ash/test/test_session_controller_client.h"
10 #include "components/user_manager/user_type.h" 11 #include "components/user_manager/user_type.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 using views::Button; 14 using views::Button;
15 15
16 namespace ash { 16 namespace ash {
17 17
18 // Tests manually control their session state. 18 // Tests manually control their session state.
19 class TrayTilesTest : public test::NoSessionAshTestBase { 19 class TrayTilesTest : public test::NoSessionAshTestBase {
20 public: 20 public:
21 TrayTilesTest() {} 21 TrayTilesTest() {}
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 std::unique_ptr<views::View> default_view( 116 std::unique_ptr<views::View> default_view(
117 tray_tiles()->CreateDefaultViewForTesting()); 117 tray_tiles()->CreateDefaultViewForTesting());
118 EXPECT_EQ(Button::STATE_DISABLED, GetSettingsButton()->state()); 118 EXPECT_EQ(Button::STATE_DISABLED, GetSettingsButton()->state());
119 EXPECT_EQ(Button::STATE_DISABLED, GetHelpButton()->state()); 119 EXPECT_EQ(Button::STATE_DISABLED, GetHelpButton()->state());
120 EXPECT_EQ(Button::STATE_DISABLED, GetNightLightButton()->state()); 120 EXPECT_EQ(Button::STATE_DISABLED, GetNightLightButton()->state());
121 EXPECT_EQ(Button::STATE_DISABLED, GetLockButton()->state()); 121 EXPECT_EQ(Button::STATE_DISABLED, GetLockButton()->state());
122 EXPECT_EQ(Button::STATE_NORMAL, GetPowerButton()->state()); 122 EXPECT_EQ(Button::STATE_NORMAL, GetPowerButton()->state());
123 } 123 }
124 124
125 } // namespace ash 125 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/tiles/tiles_default_view.cc ('k') | ash/system/tray/system_menu_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698