| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/wm/screen_dimmer.h" | 5 #include "ash/wm/screen_dimmer.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "ash/root_window_controller.h" | 9 #include "ash/root_window_controller.h" |
| 10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| 11 #include "ash/test/ash_test_base.h" | 11 #include "ash/test/ash_test_base.h" |
| 12 #include "ash/window_user_data.h" | 12 #include "ash/window_user_data.h" |
| 13 #include "ash/wm/window_dimmer.h" | 13 #include "ash/wm/window_dimmer.h" |
| 14 #include "ash/wm_window.h" | |
| 15 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
| 16 #include "ui/aura/test/test_windows.h" | 15 #include "ui/aura/test/test_windows.h" |
| 17 #include "ui/compositor/layer.h" | 16 #include "ui/compositor/layer.h" |
| 18 | 17 |
| 19 namespace ash { | 18 namespace ash { |
| 20 namespace test { | 19 namespace test { |
| 21 | 20 |
| 22 class ScreenDimmerTest : public AshTestBase { | 21 class ScreenDimmerTest : public AshTestBase { |
| 23 public: | 22 public: |
| 24 ScreenDimmerTest() {} | 23 ScreenDimmerTest() {} |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 }; | 128 }; |
| 130 | 129 |
| 131 // This test verifies ScreenDimmer can be destroyed after the shell. The | 130 // This test verifies ScreenDimmer can be destroyed after the shell. The |
| 132 // interesting part of this test is in TearDown(), which creates a ScreenDimmer | 131 // interesting part of this test is in TearDown(), which creates a ScreenDimmer |
| 133 // that is deleted after Shell. | 132 // that is deleted after Shell. |
| 134 TEST_F(ScreenDimmerShellDestructionTest, DontCrashIfScreenDimmerOutlivesShell) { | 133 TEST_F(ScreenDimmerShellDestructionTest, DontCrashIfScreenDimmerOutlivesShell) { |
| 135 } | 134 } |
| 136 | 135 |
| 137 } // namespace test | 136 } // namespace test |
| 138 } // namespace ash | 137 } // namespace ash |
| OLD | NEW |