OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/spoken_feedback_toggler.h" | 5 #include "ash/accelerators/spoken_feedback_toggler.h" |
6 #include "ash/accessibility_delegate.h" | 6 #include "ash/common/accessibility_delegate.h" |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/test/ash_test_base.h" | 8 #include "ash/test/ash_test_base.h" |
9 #include "ash/wm/window_util.h" | 9 #include "ash/wm/window_util.h" |
10 #include "ui/aura/test/test_window_delegate.h" | 10 #include "ui/aura/test/test_window_delegate.h" |
11 #include "ui/events/test/event_generator.h" | 11 #include "ui/events/test/event_generator.h" |
12 | 12 |
13 namespace ash { | 13 namespace ash { |
14 | 14 |
15 typedef ash::test::AshTestBase SpokenFeedbackTogglerTest; | 15 typedef ash::test::AshTestBase SpokenFeedbackTogglerTest; |
16 | 16 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 // Hotkey press and hold. | 70 // Hotkey press and hold. |
71 generator.PressKey(ui::VKEY_F6, ui::EF_SHIFT_DOWN); | 71 generator.PressKey(ui::VKEY_F6, ui::EF_SHIFT_DOWN); |
72 generator.PressKey(ui::VKEY_F6, ui::EF_SHIFT_DOWN); | 72 generator.PressKey(ui::VKEY_F6, ui::EF_SHIFT_DOWN); |
73 generator.PressKey(ui::VKEY_F6, ui::EF_SHIFT_DOWN); | 73 generator.PressKey(ui::VKEY_F6, ui::EF_SHIFT_DOWN); |
74 generator.ReleaseKey(ui::VKEY_F6, 0); | 74 generator.ReleaseKey(ui::VKEY_F6, 0); |
75 EXPECT_EQ("3 1", delegate.GetKeyCountsAndReset()); | 75 EXPECT_EQ("3 1", delegate.GetKeyCountsAndReset()); |
76 } | 76 } |
77 | 77 |
78 } // namespace ash | 78 } // namespace ash |
OLD | NEW |