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/dom/dom_code.h" |
8 #include "ui/events/keycodes/dom3/dom_key.h" | 8 #include "ui/events/keycodes/dom/dom_key.h" |
9 #include "ui/events/keycodes/keyboard_code_conversion.h" | 9 #include "ui/events/keycodes/keyboard_code_conversion.h" |
10 #include "ui/events/ozone/layout/keyboard_layout_engine_manager.h" | 10 #include "ui/events/ozone/layout/keyboard_layout_engine_manager.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 { |
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 std::string layout_id; | 815 std::string layout_id; |
816 std::string layout_variant; | 816 std::string layout_variant; |
817 XkbKeyboardLayoutEngine::ParseLayoutName(e->layout_name, &layout_id, | 817 XkbKeyboardLayoutEngine::ParseLayoutName(e->layout_name, &layout_id, |
818 &layout_variant); | 818 &layout_variant); |
819 EXPECT_EQ(layout_id, e->layout); | 819 EXPECT_EQ(layout_id, e->layout); |
820 EXPECT_EQ(layout_variant, e->variant); | 820 EXPECT_EQ(layout_variant, e->variant); |
821 } | 821 } |
822 } | 822 } |
823 | 823 |
824 } // namespace ui | 824 } // namespace ui |
OLD | NEW |