Add native event testing to chromeos::EventRewriter unit tests.
commit8b2f47cc891e5e84c7f4772f9b8df732ea28ac91
authorkpschoedel@chromium.org <kpschoedel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 23 May 2014 07:17:58 +0000 (23 07:17 +0000)
committerkpschoedel@chromium.org <kpschoedel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 23 May 2014 07:17:58 +0000 (23 07:17 +0000)
tree9811d1fde49cda4fd05f4d6d5225767420737bd6
parent204deb5ece6308ebef4c16636806a4d7c88fdbba
Add native event testing to chromeos::EventRewriter unit tests.

Most tests (not having state) are converted to a table-driven form,
so that multiple test operations can be done on the same test data.
Additional tests based on X11 native events are done on these cases.

The fallback X11 keycode to keysym mapping is expanded, because the
X server used by some automated tests does not support some of the
keycodes used by ChromeOS top-row special keys.

R=sadrul@chromium.org

Review URL: https://codereview.chromium.org/270633012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272428 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/chromeos/events/event_rewriter.cc
chrome/browser/chromeos/events/event_rewriter_unittest.cc
ui/events/keycodes/keyboard_code_conversion_x.cc
ui/events/test/events_test_utils_x11.cc