OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/keyboard_code_conversion.h" | 5 #include "base/keyboard_code_conversion.h" |
6 #include "base/keyboard_codes.h" | 6 #include "base/keyboard_codes.h" |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 | 9 |
10 namespace base { | 10 namespace base { |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 // this one is not in the map | 35 // this one is not in the map |
36 EXPECT_EQ(base::VKEY_UNKNOWN, KeyCodeFromKeyIdentifier("U+0001")); | 36 EXPECT_EQ(base::VKEY_UNKNOWN, KeyCodeFromKeyIdentifier("U+0001")); |
37 } | 37 } |
38 | 38 |
39 TEST(KeyCodeFromKeyIdentifierTest, DoesNotMatchEmptyString) { | 39 TEST(KeyCodeFromKeyIdentifierTest, DoesNotMatchEmptyString) { |
40 EXPECT_EQ(base::VKEY_UNKNOWN, KeyCodeFromKeyIdentifier("")); | 40 EXPECT_EQ(base::VKEY_UNKNOWN, KeyCodeFromKeyIdentifier("")); |
41 } | 41 } |
42 | 42 |
43 } // namespace base | 43 } // namespace base |
OLD | NEW |