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

Unified Diff: chrome/browser/chromeos/events/event_rewriter_unittest.cc

Issue 560853003: Revert of Fix test for master device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | ui/events/event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/events/event_rewriter_unittest.cc
diff --git a/chrome/browser/chromeos/events/event_rewriter_unittest.cc b/chrome/browser/chromeos/events/event_rewriter_unittest.cc
index 261c837aa66de6406ae132c9b1ee2fbcc3f40095..db71419e5e674a23f0afe56fecc51bd3575f03b2 100644
--- a/chrome/browser/chromeos/events/event_rewriter_unittest.cc
+++ b/chrome/browser/chromeos/events/event_rewriter_unittest.cc
@@ -46,7 +46,6 @@
// The device id of the test touchpad device.
const unsigned int kTouchPadDeviceId = 1;
const int kKeyboardDeviceId = 2;
-const int kMasterKeyboardDeviceId = 3;
std::string GetExpectedResultAsString(ui::KeyboardCode ui_keycode,
int ui_flags,
@@ -151,11 +150,8 @@
if (xevent->xkey.keycode)
CheckX11KeyTestCase(expected, rewriter, test, xevent);
// Test an XI2 GenericEvent.
- xev.InitGenericKeyEvent(kMasterKeyboardDeviceId,
- kKeyboardDeviceId,
- test.type,
- test.input.key_code,
- test.input.flags);
+ xev.InitGenericKeyEvent(
+ kKeyboardDeviceId, test.type, test.input.key_code, test.input.flags);
xevent = xev;
DCHECK(xevent->type == GenericEvent);
XIDeviceEvent* xievent = static_cast<XIDeviceEvent*>(xevent->xcookie.data);
« no previous file with comments | « no previous file | ui/events/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698