| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/chromeos/brightness/tray_brightness.h" | 5 #include "ash/system/chromeos/brightness/tray_brightness.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "ash/common/system/tray/system_tray_delegate.h" | 9 #include "ash/common/system/tray/system_tray_delegate.h" |
| 10 #include "ash/common/system/tray/system_tray_item.h" | 10 #include "ash/common/system/tray/system_tray_item.h" |
| 11 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" |
| 11 #include "ash/shell.h" | 12 #include "ash/shell.h" |
| 12 #include "ash/test/ash_test_base.h" | 13 #include "ash/test/ash_test_base.h" |
| 13 #include "ash/test/status_area_widget_test_helper.h" | 14 #include "ash/test/status_area_widget_test_helper.h" |
| 14 #include "ash/wm/maximize_mode/maximize_mode_controller.h" | |
| 15 #include "ui/views/view.h" | 15 #include "ui/views/view.h" |
| 16 | 16 |
| 17 namespace ash { | 17 namespace ash { |
| 18 | 18 |
| 19 class TrayBrightnessTest : public test::AshTestBase { | 19 class TrayBrightnessTest : public test::AshTestBase { |
| 20 public: | 20 public: |
| 21 TrayBrightnessTest() {} | 21 TrayBrightnessTest() {} |
| 22 ~TrayBrightnessTest() override {} | 22 ~TrayBrightnessTest() override {} |
| 23 | 23 |
| 24 protected: | 24 protected: |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 ->maximize_mode_controller() | 100 ->maximize_mode_controller() |
| 101 ->EnableMaximizeModeWindowManager(true); | 101 ->EnableMaximizeModeWindowManager(true); |
| 102 EXPECT_TRUE(tray->visible()); | 102 EXPECT_TRUE(tray->visible()); |
| 103 Shell::GetInstance() | 103 Shell::GetInstance() |
| 104 ->maximize_mode_controller() | 104 ->maximize_mode_controller() |
| 105 ->EnableMaximizeModeWindowManager(false); | 105 ->EnableMaximizeModeWindowManager(false); |
| 106 EXPECT_TRUE(tray->visible()); | 106 EXPECT_TRUE(tray->visible()); |
| 107 } | 107 } |
| 108 | 108 |
| 109 } // namespace ash | 109 } // namespace ash |
| OLD | NEW |