Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: ash/wm/power_button_controller_unittest.cc

Issue 12263050: Rework ash::CursorManager into a corewm object, to share code with desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/wm/panel_window_resizer.cc ('k') | ash/wm/session_state_controller_impl2_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/wm/panel_window_resizer.cc ('k') | ash/wm/session_state_controller_impl2_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698