| 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/common/wm_shell.h" |
| 7 #include "ash/test/ash_test_base.h" | 8 #include "ash/test/ash_test_base.h" |
| 8 #include "ash/wm/window_util.h" | 9 #include "ash/wm/window_util.h" |
| 9 #include "ash/wm_shell.h" | |
| 10 #include "ui/aura/test/test_window_delegate.h" | 10 #include "ui/aura/test/test_window_delegate.h" |
| 11 #include "ui/aura/window.h" | 11 #include "ui/aura/window.h" |
| 12 #include "ui/events/test/event_generator.h" | 12 #include "ui/events/test/event_generator.h" |
| 13 | 13 |
| 14 namespace ash { | 14 namespace ash { |
| 15 | 15 |
| 16 using SpokenFeedbackTogglerTest = test::AshTestBase; | 16 using SpokenFeedbackTogglerTest = test::AshTestBase; |
| 17 | 17 |
| 18 TEST_F(SpokenFeedbackTogglerTest, Basic) { | 18 TEST_F(SpokenFeedbackTogglerTest, Basic) { |
| 19 SpokenFeedbackToggler::ScopedEnablerForTest scoped; | 19 SpokenFeedbackToggler::ScopedEnablerForTest scoped; |
| (...skipping 49 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 |