OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/extensions/key_identifier_conversion_views.h" | 5 #include "chrome/browser/extensions/key_identifier_conversion_views.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "content/test/test_browser_thread.h" | 10 #include "content/public/test/test_browser_thread.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "ui/base/keycodes/keyboard_codes.h" | 12 #include "ui/base/keycodes/keyboard_codes.h" |
13 | 13 |
14 using content::BrowserThread; | 14 using content::BrowserThread; |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 class KeyEventFromKeyIdentifierTest : public testing::Test { | 18 class KeyEventFromKeyIdentifierTest : public testing::Test { |
19 protected: | 19 protected: |
20 KeyEventFromKeyIdentifierTest() | 20 KeyEventFromKeyIdentifierTest() |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 }; | 66 }; |
67 int kNumKeysWithShift = arraysize(keys_with_shift); | 67 int kNumKeysWithShift = arraysize(keys_with_shift); |
68 | 68 |
69 for (int i = 0; i < kNumKeysWithShift; ++i) { | 69 for (int i = 0; i < kNumKeysWithShift; ++i) { |
70 EXPECT_EQ(ui::EF_SHIFT_DOWN, | 70 EXPECT_EQ(ui::EF_SHIFT_DOWN, |
71 KeyEventFromKeyIdentifier(keys_with_shift[i]).flags()); | 71 KeyEventFromKeyIdentifier(keys_with_shift[i]).flags()); |
72 } | 72 } |
73 } | 73 } |
74 | 74 |
75 } // namespace | 75 } // namespace |
OLD | NEW |