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

Issue 270633012: Add native X11 testing to chromeos::EventRewriter unit tests (Closed)

Created:
6 years, 7 months ago by kpschoedel
Modified:
6 years, 6 months ago
Reviewers:
sadrul, Daniel Erat
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272428 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273280

Patch Set 1 : Convert most tests to table-driven form. #

Patch Set 2 : Add native X11 tests on the test data #

Total comments: 4

Patch Set 3 : Sync with master #

Patch Set 4 : Expand fallback keycode map to deal with missing keycodes on test servers #

Patch Set 5 : Check for supported keycode for final native test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1078 lines, -917 lines) Patch
M chrome/browser/chromeos/events/event_rewriter.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/events/event_rewriter_unittest.cc View 1 2 3 4 18 chunks +922 lines, -829 lines 0 comments Download
M ui/events/keycodes/keyboard_code_conversion_x.cc View 1 2 3 1 chunk +151 lines, -88 lines 0 comments Download
M ui/events/test/events_test_utils_x11.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (0 generated)
kpschoedel
I've uploaded this as two patch sets. The first patch set converts most of the ...
6 years, 7 months ago (2014-05-08 18:59:24 UTC) #1
sadrul
https://codereview.chromium.org/270633012/diff/20001/chrome/browser/chromeos/events/event_rewriter_unittest.cc File chrome/browser/chromeos/events/event_rewriter_unittest.cc (right): https://codereview.chromium.org/270633012/diff/20001/chrome/browser/chromeos/events/event_rewriter_unittest.cc#newcode192 chrome/browser/chromeos/events/event_rewriter_unittest.cc:192: {KeyTestCase::TEST_ALL, ui::ET_KEY_PRESSED, I think we want a blank-space after ...
6 years, 7 months ago (2014-05-14 01:23:55 UTC) #2
kpschoedel
https://codereview.chromium.org/270633012/diff/20001/chrome/browser/chromeos/events/event_rewriter_unittest.cc File chrome/browser/chromeos/events/event_rewriter_unittest.cc (right): https://codereview.chromium.org/270633012/diff/20001/chrome/browser/chromeos/events/event_rewriter_unittest.cc#newcode192 chrome/browser/chromeos/events/event_rewriter_unittest.cc:192: {KeyTestCase::TEST_ALL, ui::ET_KEY_PRESSED, On 2014/05/14 01:23:55, sadrul wrote: > I ...
6 years, 7 months ago (2014-05-14 02:23:56 UTC) #3
kpschoedel
Sync with master.
6 years, 7 months ago (2014-05-20 15:31:04 UTC) #4
Daniel Erat
i'll defer to sadrul on this unless there's something in particular that you need me ...
6 years, 7 months ago (2014-05-20 17:02:45 UTC) #5
sadrul
lgtm
6 years, 7 months ago (2014-05-20 17:13:57 UTC) #6
kpschoedel
The CQ bit was checked by kpschoedel@chromium.org
6 years, 7 months ago (2014-05-20 17:16:48 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kpschoedel@chromium.org/270633012/40001
6 years, 7 months ago (2014-05-20 17:17:56 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-20 20:51:07 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-20 20:57:19 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/68742)
6 years, 7 months ago (2014-05-20 20:57:19 UTC) #11
kpschoedel
Daniel, could you rubber-stamp Sadrul's review?
6 years, 7 months ago (2014-05-20 21:08:47 UTC) #12
Daniel Erat
lgtm
6 years, 7 months ago (2014-05-20 21:09:44 UTC) #13
Daniel Erat
The CQ bit was checked by derat@chromium.org
6 years, 7 months ago (2014-05-20 21:09:50 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kpschoedel@chromium.org/270633012/40001
6 years, 7 months ago (2014-05-20 21:10:23 UTC) #15
commit-bot: I haz the power
Change committed as 271762
6 years, 7 months ago (2014-05-20 21:42:17 UTC) #16
Nicolas Zea
On 2014/05/20 21:42:17, I haz the power (commit-bot) wrote: > Change committed as 271762 FYI ...
6 years, 7 months ago (2014-05-21 01:32:24 UTC) #17
kpschoedel
Patch set 4 only touches ui/events/keycodes/keyboard_code_conversion_x.cc
6 years, 7 months ago (2014-05-21 15:20:39 UTC) #18
kpschoedel
Sorry, forgot the review doesn't automatically copy my local commit message to explain the change: ...
6 years, 7 months ago (2014-05-21 15:32:16 UTC) #19
sadrul
On 2014/05/21 15:32:16, kpschoedel wrote: > Sorry, forgot the review doesn't automatically copy my local ...
6 years, 7 months ago (2014-05-21 15:55:51 UTC) #20
kpschoedel
The CQ bit was checked by kpschoedel@chromium.org
6 years, 7 months ago (2014-05-21 16:04:49 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kpschoedel@chromium.org/270633012/60001
6 years, 7 months ago (2014-05-21 19:57:03 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 13:32:48 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 13:34:59 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/9768)
6 years, 7 months ago (2014-05-22 13:35:00 UTC) #25
kpschoedel
The CQ bit was checked by kpschoedel@chromium.org
6 years, 7 months ago (2014-05-22 14:22:34 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kpschoedel@chromium.org/270633012/60001
6 years, 7 months ago (2014-05-22 14:23:54 UTC) #27
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 14:27:08 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 14:29:22 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/9768)
6 years, 7 months ago (2014-05-22 14:29:22 UTC) #30
kpschoedel
The CQ bit was checked by kpschoedel@chromium.org
6 years, 7 months ago (2014-05-22 16:00:11 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kpschoedel@chromium.org/270633012/60001
6 years, 7 months ago (2014-05-22 16:02:27 UTC) #32
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 16:06:31 UTC) #33
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 16:09:10 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/9768)
6 years, 7 months ago (2014-05-22 16:09:11 UTC) #35
kpschoedel
The CQ bit was checked by kpschoedel@chromium.org
6 years, 7 months ago (2014-05-23 03:56:19 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kpschoedel@chromium.org/270633012/60001
6 years, 7 months ago (2014-05-23 03:57:32 UTC) #37
commit-bot: I haz the power
Change committed as 272428
6 years, 7 months ago (2014-05-23 07:17:59 UTC) #38
kpschoedel
A revert of this CL has been created in https://codereview.chromium.org/294053014/ by kpschoedel@chromium.org. The reason for ...
6 years, 7 months ago (2014-05-23 14:02:39 UTC) #39
kpschoedel
The CQ bit was checked by kpschoedel@chromium.org
6 years, 6 months ago (2014-05-28 13:58:31 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kpschoedel@chromium.org/270633012/110001
6 years, 6 months ago (2014-05-28 13:59:58 UTC) #41
commit-bot: I haz the power
6 years, 6 months ago (2014-05-28 17:28:19 UTC) #42
Message was sent while issue was closed.
Change committed as 273280

Powered by Google App Engine
This is Rietveld 408576698