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

Side by Side Diff: remoting/host/linux/unicode_to_keysym_unittest.cc

Issue 1547473005: Switch to standard integer types in remoting/host/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 | « remoting/host/linux/unicode_to_keysym.h ('k') | remoting/host/linux/x11_util.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 "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
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
OLDNEW
« no previous file with comments | « remoting/host/linux/unicode_to_keysym.h ('k') | remoting/host/linux/x11_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698