| 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/sticky_keys/sticky_keys_overlay.h" | 5 #include "ash/sticky_keys/sticky_keys_overlay.h" |
| 6 | 6 |
| 7 #include "ash/display/window_tree_host_manager.h" | 7 #include "ash/display/window_tree_host_manager.h" |
| 8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
| 9 #include "ash/sticky_keys/sticky_keys_controller.h" | 9 #include "ash/sticky_keys/sticky_keys_controller.h" |
| 10 #include "ash/test/ash_test_base.h" | 10 #include "ash/test/ash_test_base.h" |
| 11 #include "ui/display/manager/display_layout.h" | 11 #include "ui/display/display_layout.h" |
| 12 #include "ui/display/manager/display_manager.h" | 12 #include "ui/display/manager/display_manager.h" |
| 13 #include "ui/display/test/display_manager_test_api.h" | 13 #include "ui/display/test/display_manager_test_api.h" |
| 14 #include "ui/events/event.h" | 14 #include "ui/events/event.h" |
| 15 #include "ui/views/widget/widget.h" | 15 #include "ui/views/widget/widget.h" |
| 16 | 16 |
| 17 namespace ash { | 17 namespace ash { |
| 18 | 18 |
| 19 using StickyKeysOverlayTest = test::AshTestBase; | 19 using StickyKeysOverlayTest = test::AshTestBase; |
| 20 | 20 |
| 21 TEST_F(StickyKeysOverlayTest, OverlayVisibility) { | 21 TEST_F(StickyKeysOverlayTest, OverlayVisibility) { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 overlay.GetModifierKeyState(ui::EF_SHIFT_DOWN)); | 76 overlay.GetModifierKeyState(ui::EF_SHIFT_DOWN)); |
| 77 overlay.SetModifierKeyState(ui::EF_SHIFT_DOWN, STICKY_KEY_STATE_DISABLED); | 77 overlay.SetModifierKeyState(ui::EF_SHIFT_DOWN, STICKY_KEY_STATE_DISABLED); |
| 78 EXPECT_EQ(STICKY_KEY_STATE_DISABLED, | 78 EXPECT_EQ(STICKY_KEY_STATE_DISABLED, |
| 79 overlay.GetModifierKeyState(ui::EF_SHIFT_DOWN)); | 79 overlay.GetModifierKeyState(ui::EF_SHIFT_DOWN)); |
| 80 } | 80 } |
| 81 | 81 |
| 82 // Additional sticky key overlay tests that depend on chromeos::EventRewriter | 82 // Additional sticky key overlay tests that depend on chromeos::EventRewriter |
| 83 // are now in chrome/browser/chromeos/events/event_rewriter_unittest.cc . | 83 // are now in chrome/browser/chromeos/events/event_rewriter_unittest.cc . |
| 84 | 84 |
| 85 } // namespace ash | 85 } // namespace ash |
| OLD | NEW |