Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / web / tests / KeyboardTest.cpp
index b2fce99..bdd42fb 100644 (file)
 
 #include <gtest/gtest.h>
 
-#include "WebInputEvent.h"
-#include "WebInputEventConversion.h"
 #include "core/editing/EditingBehavior.h"
 #include "core/editing/Editor.h"
 #include "core/events/EventTarget.h"
 #include "core/events/KeyboardEvent.h"
 #include "core/frame/Settings.h"
 #include "platform/KeyboardCodes.h"
+#include "public/web/WebInputEvent.h"
+#include "web/WebInputEventConversion.h"
 
 using namespace WebCore;
 using namespace blink;
@@ -58,7 +58,7 @@ public:
     {
         PlatformKeyboardEventBuilder evt(webKeyboardEvent);
         evt.setKeyType(keyType);
-        RefPtr<KeyboardEvent> keyboardEvent = KeyboardEvent::create(evt, 0);
+        RefPtrWillBeRawPtr<KeyboardEvent> keyboardEvent = KeyboardEvent::create(evt, 0);
         OwnPtr<Settings> settings = Settings::create();
         EditingBehavior behavior(settings->editingBehaviorType());
         return behavior.interpretKeyEvent(*keyboardEvent);