diff options
Diffstat (limited to 'webkit/tools/test_shell/keyboard_unittest.cc')
-rw-r--r-- | webkit/tools/test_shell/keyboard_unittest.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/webkit/tools/test_shell/keyboard_unittest.cc b/webkit/tools/test_shell/keyboard_unittest.cc index dd540f8..8ed5e3c 100644 --- a/webkit/tools/test_shell/keyboard_unittest.cc +++ b/webkit/tools/test_shell/keyboard_unittest.cc @@ -4,11 +4,14 @@ #include "config.h" -#pragma warning(push, 0) +#include "base/compiler_specific.h" + +MSVC_PUSH_WARNING_LEVEL(0); #include "EventNames.h" #include "EventTarget.h" +#include "KeyboardCodes.h" #include "KeyboardEvent.h" -#pragma warning(pop) +MSVC_POP_WARNING(); #include "webkit/glue/editor_client_impl.h" #include "webkit/glue/event_conversion.h" @@ -76,7 +79,7 @@ TEST(KeyboardUnitTestKeyDown, TestCtrlV) { TEST(KeyboardUnitTestKeyDown, TestEscape) { WebKeyboardEvent keyboard_event; - SetupKeyDownEvent(keyboard_event, VK_ESCAPE, no_modifiers); + SetupKeyDownEvent(keyboard_event, WebCore::VKEY_ESCAPE, no_modifiers); const char* result = InterpretKeyEvent(keyboard_event, PlatformKeyboardEvent::RawKeyDown); |