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 "testing/gtest/include/gtest/gtest.h" | 5 #include "testing/gtest/include/gtest/gtest.h" |
6 #include "ui/events/event_constants.h" | 6 #include "ui/events/event_constants.h" |
7 #include "ui/events/keycodes/dom3/dom_code.h" | 7 #include "ui/events/keycodes/dom3/dom_code.h" |
8 #include "ui/events/keycodes/dom3/dom_key.h" | 8 #include "ui/events/keycodes/dom3/dom_key.h" |
| 9 #include "ui/events/keycodes/keyboard_code_conversion.h" |
9 #include "ui/events/ozone/layout/keyboard_layout_engine_manager.h" | 10 #include "ui/events/ozone/layout/keyboard_layout_engine_manager.h" |
10 #include "ui/events/ozone/layout/layout_util.h" | |
11 #include "ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.h" | 11 #include "ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.h" |
12 | 12 |
13 namespace ui { | 13 namespace ui { |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 // This XkbKeyCodeConverter simply uses the numeric value of the DomCode. | 17 // This XkbKeyCodeConverter simply uses the numeric value of the DomCode. |
18 class VkTestXkbKeyCodeConverter : public XkbKeyCodeConverter { | 18 class VkTestXkbKeyCodeConverter : public XkbKeyCodeConverter { |
19 public: | 19 public: |
20 VkTestXkbKeyCodeConverter() { | 20 VkTestXkbKeyCodeConverter() { |
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 std::string layout_id; | 810 std::string layout_id; |
811 std::string layout_variant; | 811 std::string layout_variant; |
812 XkbKeyboardLayoutEngine::ParseLayoutName(e->layout_name, &layout_id, | 812 XkbKeyboardLayoutEngine::ParseLayoutName(e->layout_name, &layout_id, |
813 &layout_variant); | 813 &layout_variant); |
814 EXPECT_EQ(layout_id, e->layout); | 814 EXPECT_EQ(layout_id, e->layout); |
815 EXPECT_EQ(layout_variant, e->variant); | 815 EXPECT_EQ(layout_variant, e->variant); |
816 } | 816 } |
817 } | 817 } |
818 | 818 |
819 } // namespace ui | 819 } // namespace ui |
OLD | NEW |