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

Unified Diff: ui/events/event_unittest.cc

Issue 1560293002: Rename KEY_ constants to avoid conflict with <linux/input.h> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments (Wez) Created 4 years, 11 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.h ('k') | ui/events/keycodes/dom/keycode_converter_data.inc » ('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 eebdb52dc62dc229d01b5e0b33559ce2bfe1c269..4893d542c14ae9c0688bf47dc92d6221e5625df4 100644
--- a/ui/events/event_unittest.cc
+++ b/ui/events/event_unittest.cc
@@ -440,9 +440,9 @@ void AdvanceKeyEventTimestamp(MSG& msg) {
#if defined(USE_X11) || defined(OS_WIN)
TEST(EventTest, AutoRepeat) {
const uint16_t kNativeCodeA =
- ui::KeycodeConverter::DomCodeToNativeKeycode(DomCode::KEY_A);
+ ui::KeycodeConverter::DomCodeToNativeKeycode(DomCode::US_A);
const uint16_t kNativeCodeB =
- ui::KeycodeConverter::DomCodeToNativeKeycode(DomCode::KEY_B);
+ ui::KeycodeConverter::DomCodeToNativeKeycode(DomCode::US_B);
#if defined(USE_X11)
ScopedXI2Event native_event_a_pressed;
native_event_a_pressed.InitKeyEvent(ET_KEY_PRESSED, VKEY_A, kNativeCodeA);
« no previous file with comments | « ui/events/event.h ('k') | ui/events/keycodes/dom/keycode_converter_data.inc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698