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

Side by Side Diff: ash/accelerators/accelerator_controller_unittest.cc

Issue 138003007: [Cleanup] Screen cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make sure screen_for_shutdown is reset everytime Created 6 years, 11 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 | « no previous file | ash/ash.gyp » ('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/accelerators/accelerator_controller.h" 5 #include "ash/accelerators/accelerator_controller.h"
6 #include "ash/accelerators/accelerator_table.h" 6 #include "ash/accelerators/accelerator_table.h"
7 #include "ash/accessibility_delegate.h" 7 #include "ash/accessibility_delegate.h"
8 #include "ash/ash_switches.h" 8 #include "ash/ash_switches.h"
9 #include "ash/caps_lock_delegate.h" 9 #include "ash/caps_lock_delegate.h"
10 #include "ash/display/display_manager.h" 10 #include "ash/display/display_manager.h"
11 #include "ash/ime_control_delegate.h" 11 #include "ash/ime_control_delegate.h"
12 #include "ash/screen_ash.h"
13 #include "ash/shell.h" 12 #include "ash/shell.h"
14 #include "ash/shell_window_ids.h" 13 #include "ash/shell_window_ids.h"
15 #include "ash/system/brightness_control_delegate.h" 14 #include "ash/system/brightness_control_delegate.h"
16 #include "ash/system/keyboard_brightness/keyboard_brightness_control_delegate.h" 15 #include "ash/system/keyboard_brightness/keyboard_brightness_control_delegate.h"
17 #include "ash/system/tray/system_tray_delegate.h" 16 #include "ash/system/tray/system_tray_delegate.h"
18 #include "ash/test/ash_test_base.h" 17 #include "ash/test/ash_test_base.h"
19 #include "ash/test/display_manager_test_api.h" 18 #include "ash/test/display_manager_test_api.h"
20 #include "ash/test/test_screenshot_delegate.h" 19 #include "ash/test/test_screenshot_delegate.h"
21 #include "ash/test/test_shell_delegate.h" 20 #include "ash/test/test_shell_delegate.h"
22 #include "ash/volume_control_delegate.h" 21 #include "ash/volume_control_delegate.h"
23 #include "ash/wm/window_state.h" 22 #include "ash/wm/window_state.h"
24 #include "ash/wm/window_util.h" 23 #include "ash/wm/window_util.h"
25 #include "base/command_line.h" 24 #include "base/command_line.h"
26 #include "ui/aura/root_window.h" 25 #include "ui/aura/root_window.h"
27 #include "ui/aura/test/test_window_delegate.h" 26 #include "ui/aura/test/test_window_delegate.h"
28 #include "ui/aura/test/test_windows.h" 27 #include "ui/aura/test/test_windows.h"
29 #include "ui/aura/window.h" 28 #include "ui/aura/window.h"
30 #include "ui/events/event.h" 29 #include "ui/events/event.h"
30 #include "ui/gfx/screen.h"
31 31
32 #if defined(USE_X11) 32 #if defined(USE_X11)
33 #include <X11/Xlib.h> 33 #include <X11/Xlib.h>
34 #include "ui/events/test/events_test_utils_x11.h" 34 #include "ui/events/test/events_test_utils_x11.h"
35 #endif 35 #endif
36 36
37 namespace ash { 37 namespace ash {
38 38
39 namespace { 39 namespace {
40 40
(...skipping 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after
1383 // Don't alert if we have a minimized window either. 1383 // Don't alert if we have a minimized window either.
1384 GetController()->PerformAction(WINDOW_MINIMIZE, dummy); 1384 GetController()->PerformAction(WINDOW_MINIMIZE, dummy);
1385 for (size_t i = 0; i < kActionsNeedingWindowLength; ++i) { 1385 for (size_t i = 0; i < kActionsNeedingWindowLength; ++i) {
1386 delegate->TriggerAccessibilityAlert(A11Y_ALERT_NONE); 1386 delegate->TriggerAccessibilityAlert(A11Y_ALERT_NONE);
1387 GetController()->PerformAction(kActionsNeedingWindow[i], dummy); 1387 GetController()->PerformAction(kActionsNeedingWindow[i], dummy);
1388 EXPECT_EQ(delegate->GetLastAccessibilityAlert(), A11Y_ALERT_NONE); 1388 EXPECT_EQ(delegate->GetLastAccessibilityAlert(), A11Y_ALERT_NONE);
1389 } 1389 }
1390 } 1390 }
1391 1391
1392 } // namespace ash 1392 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | ash/ash.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698