OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <stddef.h> |
| 6 |
5 #include "ash/shell.h" | 7 #include "ash/shell.h" |
6 #include "ash/sticky_keys/sticky_keys_controller.h" | 8 #include "ash/sticky_keys/sticky_keys_controller.h" |
7 #include "ash/sticky_keys/sticky_keys_overlay.h" | 9 #include "ash/sticky_keys/sticky_keys_overlay.h" |
8 #include "ash/system/tray/system_tray.h" | 10 #include "ash/system/tray/system_tray.h" |
9 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/macros.h" |
10 #include "base/prefs/pref_service.h" | 13 #include "base/prefs/pref_service.h" |
11 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" | 14 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
12 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
14 #include "chrome/browser/ui/browser_window.h" | 17 #include "chrome/browser/ui/browser_window.h" |
15 #include "chrome/browser/ui/location_bar/location_bar.h" | 18 #include "chrome/browser/ui/location_bar/location_bar.h" |
16 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 19 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
17 #include "chrome/browser/ui/view_ids.h" | 20 #include "chrome/browser/ui/view_ids.h" |
18 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
19 #include "chrome/test/base/in_process_browser_test.h" | 22 #include "chrome/test/base/in_process_browser_test.h" |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 EXPECT_TRUE(sticky_keys_overlay->is_visible()); | 222 EXPECT_TRUE(sticky_keys_overlay->is_visible()); |
220 DisableStickyKeys(); | 223 DisableStickyKeys(); |
221 EXPECT_FALSE(controller->GetOverlayForTest()); | 224 EXPECT_FALSE(controller->GetOverlayForTest()); |
222 for (auto key_code : modifier_keys) { | 225 for (auto key_code : modifier_keys) { |
223 SendKeyPress(key_code); | 226 SendKeyPress(key_code); |
224 EXPECT_FALSE(controller->GetOverlayForTest()); | 227 EXPECT_FALSE(controller->GetOverlayForTest()); |
225 } | 228 } |
226 } | 229 } |
227 | 230 |
228 } // namespace chromeos | 231 } // namespace chromeos |
OLD | NEW |