| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |