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

Unified Diff: ui/events/event_unittest.cc

Issue 1061733002: Remove windows/mac/ios specific code from //ui (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix default try set Created 5 years, 9 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/events/event.cc ('k') | ui/events/gestures/gesture_recognizer_impl_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event_unittest.cc
diff --git a/ui/events/event_unittest.cc b/ui/events/event_unittest.cc
index 6193036f7dbdf0607e393e968b221d72285b3a76..c766b95ee2f0463fcab9df182319c5d1fda14935 100644
--- a/ui/events/event_unittest.cc
+++ b/ui/events/event_unittest.cc
@@ -224,33 +224,6 @@ TEST(EventTest, KeyEventCode) {
KeyEvent key(ET_KEY_PRESSED, VKEY_SPACE, EF_NONE);
EXPECT_TRUE(key.code().empty());
}
-#if defined(OS_WIN)
- {
- // Test a non extended key.
- ASSERT_EQ((kNativeCodeSpace & 0xFF), kNativeCodeSpace);
-
- const LPARAM lParam = GetLParamFromScanCode(kNativeCodeSpace);
- MSG native_event = { NULL, WM_KEYUP, VKEY_SPACE, lParam };
- KeyEvent key(native_event);
-
- // KeyEvent converts from the native keycode (scan code) to the code.
- EXPECT_EQ(kCodeForSpace, key.code());
- }
- {
- const char kCodeForHome[] = "Home";
- const uint16 kNativeCodeHome = 0xe047;
-
- // 'Home' is an extended key with 0xe000 bits.
- ASSERT_NE((kNativeCodeHome & 0xFF), kNativeCodeHome);
- const LPARAM lParam = GetLParamFromScanCode(kNativeCodeHome);
-
- MSG native_event = { NULL, WM_KEYUP, VKEY_HOME, lParam };
- KeyEvent key(native_event);
-
- // KeyEvent converts from the native keycode (scan code) to the code.
- EXPECT_EQ(kCodeForHome, key.code());
- }
-#endif // OS_WIN
}
} // namespace ui
« no previous file with comments | « ui/events/event.cc ('k') | ui/events/gestures/gesture_recognizer_impl_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698