| 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 "testing/gtest/include/gtest/gtest.h" | 5 #include "testing/gtest/include/gtest/gtest.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "views/events/event.h" | 8 #include "ui/views/events/event.h" |
| 9 | 9 |
| 10 // Bug 99129. | 10 // Bug 99129. |
| 11 #if defined(USE_AURA) | 11 #if defined(USE_AURA) |
| 12 #define MAYBE_KeyEvent FAILS_KeyEvent | 12 #define MAYBE_KeyEvent FAILS_KeyEvent |
| 13 #define MAYBE_KeyEventDirectUnicode FAILS_KeyEventDirectUnicode | 13 #define MAYBE_KeyEventDirectUnicode FAILS_KeyEventDirectUnicode |
| 14 #else | 14 #else |
| 15 #define MAYBE_KeyEvent KeyEvent | 15 #define MAYBE_KeyEvent KeyEvent |
| 16 #define MAYBE_KeyEventDirectUnicode KeyEventDirectUnicode | 16 #define MAYBE_KeyEventDirectUnicode KeyEventDirectUnicode |
| 17 #endif | 17 #endif |
| 18 | 18 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 EXPECT_EQ(0x1234U, key.GetCharacter()); | 119 EXPECT_EQ(0x1234U, key.GetCharacter()); |
| 120 EXPECT_EQ(0x4321U, key.GetUnmodifiedCharacter()); | 120 EXPECT_EQ(0x4321U, key.GetUnmodifiedCharacter()); |
| 121 KeyEvent key2(ui::ET_KEY_RELEASED, ui::VKEY_UNKNOWN, ui::EF_CONTROL_DOWN); | 121 KeyEvent key2(ui::ET_KEY_RELEASED, ui::VKEY_UNKNOWN, ui::EF_CONTROL_DOWN); |
| 122 key2.set_character(0x4321U); | 122 key2.set_character(0x4321U); |
| 123 key2.set_unmodified_character(0x1234U); | 123 key2.set_unmodified_character(0x1234U); |
| 124 EXPECT_EQ(0x4321U, key2.GetCharacter()); | 124 EXPECT_EQ(0x4321U, key2.GetCharacter()); |
| 125 EXPECT_EQ(0x1234U, key2.GetUnmodifiedCharacter()); | 125 EXPECT_EQ(0x1234U, key2.GetUnmodifiedCharacter()); |
| 126 } | 126 } |
| 127 | 127 |
| 128 } // namespace views | 128 } // namespace views |
| OLD | NEW |