| 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/power_button_controller.h" | 5 #include "ash/wm/power_button_controller.h" |
| 6 #include "ash/wm/session_state_animator.h" | 6 #include "ash/wm/session_state_animator.h" |
| 7 #include "ash/wm/session_state_controller.h" | 7 #include "ash/wm/session_state_controller.h" |
| 8 #include "ash/wm/session_state_controller_impl.h" | 8 #include "ash/wm/session_state_controller_impl.h" |
| 9 | 9 |
| 10 #include "ash/ash_switches.h" | 10 #include "ash/ash_switches.h" |
| 11 #include "ash/shell.h" | 11 #include "ash/shell.h" |
| 12 #include "ash/test/ash_test_base.h" | 12 #include "ash/test/ash_test_base.h" |
| 13 #include "ash/test/test_shell_delegate.h" | 13 #include "ash/test/test_shell_delegate.h" |
| 14 #include "ash/wm/cursor_manager.h" | |
| 15 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 16 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/time.h" | 16 #include "base/time.h" |
| 18 #include "ui/aura/env.h" | 17 #include "ui/aura/env.h" |
| 19 #include "ui/aura/root_window.h" | 18 #include "ui/aura/root_window.h" |
| 20 #include "ui/aura/test/event_generator.h" | 19 #include "ui/aura/test/event_generator.h" |
| 21 #include "ui/gfx/rect.h" | 20 #include "ui/gfx/rect.h" |
| 22 #include "ui/gfx/size.h" | 21 #include "ui/gfx/size.h" |
| 23 | 22 |
| 24 namespace ash { | 23 namespace ash { |
| (...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 | 624 |
| 626 // After increasing the brightness to 10%, we should start the timer like | 625 // After increasing the brightness to 10%, we should start the timer like |
| 627 // usual. | 626 // usual. |
| 628 controller_->OnScreenBrightnessChanged(10.0); | 627 controller_->OnScreenBrightnessChanged(10.0); |
| 629 controller_->OnPowerButtonEvent(true, base::TimeTicks::Now()); | 628 controller_->OnPowerButtonEvent(true, base::TimeTicks::Now()); |
| 630 EXPECT_TRUE(test_api_->lock_timer_is_running()); | 629 EXPECT_TRUE(test_api_->lock_timer_is_running()); |
| 631 } | 630 } |
| 632 | 631 |
| 633 } // namespace test | 632 } // namespace test |
| 634 } // namespace ash | 633 } // namespace ash |
| OLD | NEW |