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