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

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

Issue 2734733002: Revert "chromeos: Move files in //ash/common to //ash, part 3" (Closed)
Patch Set: Created 3 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
« no previous file with comments | « ash/accelerators/spoken_feedback_toggler.cc ('k') | ash/accessibility_delegate.h » ('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 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
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
OLDNEW
« no previous file with comments | « ash/accelerators/spoken_feedback_toggler.cc ('k') | ash/accessibility_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698