Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: webkit/tools/test_shell/keyboard_unittest.cc

Issue 387020: Upstreaming WebKit.gyp (Closed)
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "config.h" 5 #include "config.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 8
9 MSVC_PUSH_WARNING_LEVEL(0); 9 MSVC_PUSH_WARNING_LEVEL(0);
10 #include "EventTarget.h" 10 #include "EventTarget.h"
11 #include "KeyboardCodes.h" 11 #include "KeyboardCodes.h"
12 #include "KeyboardEvent.h" 12 #include "KeyboardEvent.h"
13 MSVC_POP_WARNING(); 13 MSVC_POP_WARNING();
14 14
15 #undef LOG 15 #undef LOG
16 16
17 #include "base/string_util.h" 17 #include "base/string_util.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 #include "webkit/api/public/WebInputEvent.h" 19 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h"
20 #include "webkit/api/src/EditorClientImpl.h" 20 #include "third_party/WebKit/WebKit/chromium/src/EditorClientImpl.h"
21 #include "webkit/api/src/WebInputEventConversion.h" 21 #include "third_party/WebKit/WebKit/chromium/src/WebInputEventConversion.h"
22 22
23 using WebCore::PlatformKeyboardEvent; 23 using WebCore::PlatformKeyboardEvent;
24 using WebCore::KeyboardEvent; 24 using WebCore::KeyboardEvent;
25 25
26 using WebKit::EditorClientImpl; 26 using WebKit::EditorClientImpl;
27 using WebKit::PlatformKeyboardEventBuilder; 27 using WebKit::PlatformKeyboardEventBuilder;
28 using WebKit::WebInputEvent; 28 using WebKit::WebInputEvent;
29 using WebKit::WebKeyboardEvent; 29 using WebKit::WebKeyboardEvent;
30 30
31 class KeyboardTest : public testing::Test { 31 class KeyboardTest : public testing::Test {
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 TEST_F(KeyboardTest, TestInsertNewline3) { 170 TEST_F(KeyboardTest, TestInsertNewline3) {
171 EXPECT_STREQ("InsertNewline", InterpretNewLine(WebInputEvent::AltKey)); 171 EXPECT_STREQ("InsertNewline", InterpretNewLine(WebInputEvent::AltKey));
172 } 172 }
173 173
174 TEST_F(KeyboardTest, TestInsertNewline4) { 174 TEST_F(KeyboardTest, TestInsertNewline4) {
175 int modifiers = WebInputEvent::AltKey | WebInputEvent::ShiftKey; 175 int modifiers = WebInputEvent::AltKey | WebInputEvent::ShiftKey;
176 const char* result = InterpretNewLine(modifiers); 176 const char* result = InterpretNewLine(modifiers);
177 EXPECT_STREQ("InsertNewline", result); 177 EXPECT_STREQ("InsertNewline", result);
178 } 178 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/event_sending_controller.cc ('k') | webkit/tools/test_shell/layout_test_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698