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/common/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/common/wm/maximize_mode/maximize_mode_controller.h" |
12 #include "ash/common/wm_shell.h" | 12 #include "ash/common/wm_shell.h" |
13 #include "ash/shell.h" | |
14 #include "ash/test/ash_test_base.h" | 13 #include "ash/test/ash_test_base.h" |
15 #include "ash/test/status_area_widget_test_helper.h" | 14 #include "ash/test/status_area_widget_test_helper.h" |
16 #include "ui/views/view.h" | 15 #include "ui/views/view.h" |
17 | 16 |
18 namespace ash { | 17 namespace ash { |
19 | 18 |
20 class TrayBrightnessTest : public test::AshTestBase { | 19 class TrayBrightnessTest : public test::AshTestBase { |
21 public: | 20 public: |
22 TrayBrightnessTest() {} | 21 TrayBrightnessTest() {} |
23 ~TrayBrightnessTest() override {} | 22 ~TrayBrightnessTest() override {} |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 std::unique_ptr<views::View> tray(CreateDetailedView()); | 92 std::unique_ptr<views::View> tray(CreateDetailedView()); |
94 WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager( | 93 WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager( |
95 true); | 94 true); |
96 EXPECT_TRUE(tray->visible()); | 95 EXPECT_TRUE(tray->visible()); |
97 WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager( | 96 WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager( |
98 false); | 97 false); |
99 EXPECT_TRUE(tray->visible()); | 98 EXPECT_TRUE(tray->visible()); |
100 } | 99 } |
101 | 100 |
102 } // namespace ash | 101 } // namespace ash |
OLD | NEW |