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

Issue 358693004: Added touch event permutations test to touch_exploration_controller. (Closed)

Created:
6 years, 5 months ago by evy
Modified:
6 years, 5 months ago
Reviewers:
dmazzoni, aboxhall
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org, lisayin
Base URL:
https://chromium.googlesource.com/chromium/src.git@new_passthrough
Project:
chromium
Visibility:
Public.

Description

Added touch event permutations test to touch_exploration_controller. All permutations of three fingers pressing, moving, and releasing are now being tested. Fingers that were recorded as pressed during the permutation but not released yet are released, and then there is a check for no fingers down. BUG=388520 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281195 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281924

Patch Set 1 #

Total comments: 10

Patch Set 2 : more efficient factorials #

Patch Set 3 : updated NOTREACHED() logging and prevented the test from reaching the NOTREACHED() #

Total comments: 12

Patch Set 4 : explained the algorithm #

Total comments: 6

Patch Set 5 : Updated comments and organization #

Total comments: 8

Patch Set 6 : #

Total comments: 15

Patch Set 7 : #

Patch Set 8 : rebased #

Patch Set 9 : rebased from newest passthrough #

Patch Set 10 : permutations doesn't run VLOGS and doesn't break the DCHECK anymore #

Total comments: 5

Patch Set 11 : #

Patch Set 12 : test now only runs in release mode because it times out in debug mode #

Patch Set 13 : rebased #

Patch Set 14 : rebased off of gestures #

Patch Set 15 : rebased #

Patch Set 16 : rebased again because failure to apply the patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -12 lines) Patch
M ui/chromeos/touch_exploration_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +7 lines, -0 lines 0 comments Download
M ui/chromeos/touch_exploration_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 14 chunks +38 lines, -12 lines 0 comments Download
M ui/chromeos/touch_exploration_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +135 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
evy
6 years, 5 months ago (2014-06-25 21:45:13 UTC) #1
dmazzoni
https://codereview.chromium.org/358693004/diff/1/ui/chromeos/touch_exploration_controller_unittest.cc File ui/chromeos/touch_exploration_controller_unittest.cc (right): https://codereview.chromium.org/358693004/diff/1/ui/chromeos/touch_exploration_controller_unittest.cc#newcode952 ui/chromeos/touch_exploration_controller_unittest.cc:952: int Factorial(int n) { Put this inside the "namespace ...
6 years, 5 months ago (2014-06-26 18:16:43 UTC) #2
evy
https://codereview.chromium.org/358693004/diff/1/ui/chromeos/touch_exploration_controller_unittest.cc File ui/chromeos/touch_exploration_controller_unittest.cc (right): https://codereview.chromium.org/358693004/diff/1/ui/chromeos/touch_exploration_controller_unittest.cc#newcode952 ui/chromeos/touch_exploration_controller_unittest.cc:952: int Factorial(int n) { On 2014/06/26 18:16:43, dmazzoni wrote: ...
6 years, 5 months ago (2014-06-26 22:31:05 UTC) #3
dmazzoni
https://codereview.chromium.org/358693004/diff/1/ui/chromeos/touch_exploration_controller_unittest.cc File ui/chromeos/touch_exploration_controller_unittest.cc (right): https://codereview.chromium.org/358693004/diff/1/ui/chromeos/touch_exploration_controller_unittest.cc#newcode1014 ui/chromeos/touch_exploration_controller_unittest.cc:1014: // order. If there is a NOTREACHED() for touch ...
6 years, 5 months ago (2014-06-27 07:25:16 UTC) #4
evy
https://codereview.chromium.org/358693004/diff/1/ui/chromeos/touch_exploration_controller_unittest.cc File ui/chromeos/touch_exploration_controller_unittest.cc (right): https://codereview.chromium.org/358693004/diff/1/ui/chromeos/touch_exploration_controller_unittest.cc#newcode1014 ui/chromeos/touch_exploration_controller_unittest.cc:1014: // order. If there is a NOTREACHED() for touch ...
6 years, 5 months ago (2014-06-27 16:33:37 UTC) #5
dmazzoni
Alice, want to take a pass?
6 years, 5 months ago (2014-06-27 16:39:37 UTC) #6
aboxhall
https://codereview.chromium.org/358693004/diff/40001/ui/chromeos/touch_exploration_controller_unittest.cc File ui/chromeos/touch_exploration_controller_unittest.cc (right): https://codereview.chromium.org/358693004/diff/40001/ui/chromeos/touch_exploration_controller_unittest.cc#newcode969 ui/chromeos/touch_exploration_controller_unittest.cc:969: all_events.push_back( This could be a for-loop over touch_id - ...
6 years, 5 months ago (2014-06-27 18:08:02 UTC) #7
evy
https://codereview.chromium.org/358693004/diff/40001/ui/chromeos/touch_exploration_controller_unittest.cc File ui/chromeos/touch_exploration_controller_unittest.cc (right): https://codereview.chromium.org/358693004/diff/40001/ui/chromeos/touch_exploration_controller_unittest.cc#newcode969 ui/chromeos/touch_exploration_controller_unittest.cc:969: all_events.push_back( On 2014/06/27 18:08:02, aboxhall wrote: > This could ...
6 years, 5 months ago (2014-06-27 21:00:03 UTC) #8
aboxhall
https://codereview.chromium.org/358693004/diff/60001/ui/chromeos/touch_exploration_controller_unittest.cc File ui/chromeos/touch_exploration_controller_unittest.cc (right): https://codereview.chromium.org/358693004/diff/60001/ui/chromeos/touch_exploration_controller_unittest.cc#newcode972 ui/chromeos/touch_exploration_controller_unittest.cc:972: gfx::Point(10 * touch_id + 1, 10 * touch_id + ...
6 years, 5 months ago (2014-06-27 22:37:26 UTC) #9
evy
https://codereview.chromium.org/358693004/diff/60001/ui/chromeos/touch_exploration_controller_unittest.cc File ui/chromeos/touch_exploration_controller_unittest.cc (right): https://codereview.chromium.org/358693004/diff/60001/ui/chromeos/touch_exploration_controller_unittest.cc#newcode972 ui/chromeos/touch_exploration_controller_unittest.cc:972: gfx::Point(10 * touch_id + 1, 10 * touch_id + ...
6 years, 5 months ago (2014-06-30 17:33:08 UTC) #10
aboxhall
Getting very close - I really love the worked (a, b, c, d) examples. https://codereview.chromium.org/358693004/diff/80001/ui/chromeos/touch_exploration_controller_unittest.cc ...
6 years, 5 months ago (2014-06-30 18:19:36 UTC) #11
evy
https://codereview.chromium.org/358693004/diff/80001/ui/chromeos/touch_exploration_controller_unittest.cc File ui/chromeos/touch_exploration_controller_unittest.cc (right): https://codereview.chromium.org/358693004/diff/80001/ui/chromeos/touch_exploration_controller_unittest.cc#newcode970 ui/chromeos/touch_exploration_controller_unittest.cc:970: int x = 10*touch_id + 1; On 2014/06/30 18:19:36, ...
6 years, 5 months ago (2014-06-30 18:35:26 UTC) #12
aboxhall
lgtm with nits (i.e. feel free to submit after you fix up the last few ...
6 years, 5 months ago (2014-06-30 19:24:25 UTC) #13
aboxhall
Oh - you should probably wait for Dominic's LGTM too though!
6 years, 5 months ago (2014-06-30 19:41:52 UTC) #14
aboxhall
Oh - you should probably wait for Dominic's LGTM too though!
6 years, 5 months ago (2014-06-30 19:41:52 UTC) #15
dmazzoni
Can you upload again with the latest changes that address Alice's comments? On Mon, Jun ...
6 years, 5 months ago (2014-06-30 20:09:06 UTC) #16
dmazzoni
lgtm I love the new comments. Great job. https://codereview.chromium.org/358693004/diff/100001/ui/chromeos/touch_exploration_controller_unittest.cc File ui/chromeos/touch_exploration_controller_unittest.cc (right): https://codereview.chromium.org/358693004/diff/100001/ui/chromeos/touch_exploration_controller_unittest.cc#newcode66 ui/chromeos/touch_exploration_controller_unittest.cc:66: if ...
6 years, 5 months ago (2014-06-30 20:14:44 UTC) #17
evy
https://codereview.chromium.org/358693004/diff/100001/ui/chromeos/touch_exploration_controller_unittest.cc File ui/chromeos/touch_exploration_controller_unittest.cc (right): https://codereview.chromium.org/358693004/diff/100001/ui/chromeos/touch_exploration_controller_unittest.cc#newcode66 ui/chromeos/touch_exploration_controller_unittest.cc:66: if (n == 2) On 2014/06/30 20:14:44, dmazzoni wrote: ...
6 years, 5 months ago (2014-06-30 20:23:48 UTC) #18
aboxhall
still lgtm
6 years, 5 months ago (2014-06-30 21:38:46 UTC) #19
evy
I changed a few things because I was failing some trybot tests (trying to stop ...
6 years, 5 months ago (2014-07-02 22:58:02 UTC) #20
dmazzoni
lgtm with nits https://codereview.chromium.org/358693004/diff/180001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/358693004/diff/180001/ui/chromeos/touch_exploration_controller.cc#newcode51 ui/chromeos/touch_exploration_controller.cc:51: if (turn_on) You can just say ...
6 years, 5 months ago (2014-07-02 23:05:58 UTC) #21
aboxhall
lgtm
6 years, 5 months ago (2014-07-02 23:11:11 UTC) #22
evy
https://codereview.chromium.org/358693004/diff/180001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/358693004/diff/180001/ui/chromeos/touch_exploration_controller.cc#newcode51 ui/chromeos/touch_exploration_controller.cc:51: if (turn_on) On 2014/07/02 23:05:57, dmazzoni wrote: > You ...
6 years, 5 months ago (2014-07-02 23:16:03 UTC) #23
evy
The CQ bit was checked by evy@chromium.org
6 years, 5 months ago (2014-07-03 00:33:21 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/evy@chromium.org/358693004/200001
6 years, 5 months ago (2014-07-03 00:34:50 UTC) #25
commit-bot: I haz the power
Change committed as 281195
6 years, 5 months ago (2014-07-03 06:43:19 UTC) #26
Nikita (slow)
A revert of this CL has been created in https://codereview.chromium.org/367263005/ by nkostylev@chromium.org. The reason for ...
6 years, 5 months ago (2014-07-03 11:47:00 UTC) #27
evy
6 years, 5 months ago (2014-07-07 19:52:20 UTC) #28
evy
The CQ bit was checked by evy@chromium.org
6 years, 5 months ago (2014-07-09 00:56:49 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/evy@chromium.org/358693004/320001
6 years, 5 months ago (2014-07-09 00:59:04 UTC) #30
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 5 months ago (2014-07-09 03:06:02 UTC) #31
commit-bot: I haz the power
6 years, 5 months ago (2014-07-09 04:23:39 UTC) #32
Message was sent while issue was closed.
Change committed as 281924

Powered by Google App Engine
This is Rietveld 408576698