| 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 "remoting/host/linux/unicode_to_keysym.h" | 5 #include "remoting/host/linux/unicode_to_keysym.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
| 7 #include <algorithm> | 10 #include <algorithm> |
| 8 | 11 |
| 9 #include "base/macros.h" | 12 #include "base/macros.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 14 |
| 12 namespace remoting { | 15 namespace remoting { |
| 13 | 16 |
| 14 TEST(GetKeySymsForUnicode, Map) { | 17 TEST(GetKeySymsForUnicode, Map) { |
| 15 const static struct Test { | 18 const static struct Test { |
| 16 uint32_t code_point; | 19 uint32_t code_point; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 39 | 42 |
| 40 std::vector<uint32_t> expected( | 43 std::vector<uint32_t> expected( |
| 41 kTests[i].expected_keysyms, | 44 kTests[i].expected_keysyms, |
| 42 std::find( | 45 std::find( |
| 43 kTests[i].expected_keysyms, kTests[i].expected_keysyms + 4, 0)); | 46 kTests[i].expected_keysyms, kTests[i].expected_keysyms + 4, 0)); |
| 44 EXPECT_EQ(expected, keysyms); | 47 EXPECT_EQ(expected, keysyms); |
| 45 } | 48 } |
| 46 } | 49 } |
| 47 | 50 |
| 48 } // namespace remoting | 51 } // namespace remoting |
| OLD | NEW |