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

Issue 2802583002: Add test to check search key based accelerators. (Closed)

Created:
3 years, 8 months ago by wutao
Modified:
3 years, 8 months ago
CC:
chromium-reviews, kalyank, ortuno+watch_chromium.org, sadrul
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add test to check search key based accelerators. For new added accelerators, we want to ensure it is search key based by adding the test. BUG=706018, 706462 TEST=AcceleratorTableTest.CheckSearchBasedAccelerators Review-Url: https://codereview.chromium.org/2802583002 Cr-Commit-Position: refs/heads/master@{#462753} Committed: https://chromium.googlesource.com/chromium/src/+/77744550580e6f83fa1ada19e8f96722b911640f

Patch Set 1 #

Total comments: 8

Patch Set 2 : Changed based on comments in patch 1. #

Total comments: 6

Patch Set 3 : Fixed nits in patch 2. #

Total comments: 4

Patch Set 4 : Change test method to number and hash based. #

Total comments: 19

Patch Set 5 : Update the hash method. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -9 lines) Patch
M ash/common/accelerators/accelerator_table_unittest.cc View 1 2 3 4 5 chunks +66 lines, -9 lines 1 comment Download

Messages

Total messages: 44 (18 generated)
wutao
Hi Ahmed, Could you please have a look. Thanks. Tao
3 years, 8 months ago (2017-04-05 06:40:16 UTC) #2
afakhry
https://codereview.chromium.org/2802583002/diff/1/ash/common/accelerators/accelerator_table_unittest.cc File ash/common/accelerators/accelerator_table_unittest.cc (right): https://codereview.chromium.org/2802583002/diff/1/ash/common/accelerators/accelerator_table_unittest.cc#newcode29 ash/common/accelerators/accelerator_table_unittest.cc:29: const AcceleratorData kAcceleratorDataAchived20170405[] = { Please add a comment ...
3 years, 8 months ago (2017-04-05 16:01:32 UTC) #3
wutao
Hi Ahmed, Please have another look. Thanks, Tao https://codereview.chromium.org/2802583002/diff/1/ash/common/accelerators/accelerator_table_unittest.cc File ash/common/accelerators/accelerator_table_unittest.cc (right): https://codereview.chromium.org/2802583002/diff/1/ash/common/accelerators/accelerator_table_unittest.cc#newcode29 ash/common/accelerators/accelerator_table_unittest.cc:29: const ...
3 years, 8 months ago (2017-04-05 16:49:32 UTC) #6
Daniel Erat
high-level comment: engineers shouldn't be adding search-based accelerators either without UX approval. https://codereview.chromium.org/2802583002/diff/20001/ash/common/accelerators/accelerator_table_unittest.cc File ash/common/accelerators/accelerator_table_unittest.cc ...
3 years, 8 months ago (2017-04-05 18:08:31 UTC) #8
wutao
Hi Daniel, Please have another look at the changes. Thank you, Tao https://codereview.chromium.org/2802583002/diff/20001/ash/common/accelerators/accelerator_table_unittest.cc File ash/common/accelerators/accelerator_table_unittest.cc ...
3 years, 8 months ago (2017-04-05 23:00:16 UTC) #10
Daniel Erat
[adding other ash owners] i'm still not convinced about this approach. how will this be ...
3 years, 8 months ago (2017-04-05 23:32:51 UTC) #16
oshima
On 2017/04/05 23:32:51, Daniel Erat wrote: > [adding other ash owners] > > i'm still ...
3 years, 8 months ago (2017-04-05 23:51:32 UTC) #18
wutao
On 2017/04/05 23:32:51, Daniel Erat wrote: > [adding other ash owners] > > i'm still ...
3 years, 8 months ago (2017-04-05 23:52:55 UTC) #19
wutao
On 2017/04/05 23:51:32, oshima wrote: > On 2017/04/05 23:32:51, Daniel Erat wrote: > > [adding ...
3 years, 8 months ago (2017-04-05 23:59:22 UTC) #20
Daniel Erat
On 2017/04/05 23:52:55, wutao wrote: > On 2017/04/05 23:32:51, Daniel Erat wrote: > > [adding ...
3 years, 8 months ago (2017-04-06 00:04:16 UTC) #21
James Cook
On 2017/04/06 00:04:16, Daniel Erat wrote: > On 2017/04/05 23:52:55, wutao wrote: > > On ...
3 years, 8 months ago (2017-04-06 01:41:43 UTC) #22
oshima
On 2017/04/05 23:59:22, wutao wrote: > On 2017/04/05 23:51:32, oshima wrote: > > On 2017/04/05 ...
3 years, 8 months ago (2017-04-06 02:00:55 UTC) #23
wutao
Hi Oshima and Daniel, I changed the testing method to number and hash based. Please ...
3 years, 8 months ago (2017-04-06 17:38:51 UTC) #24
wutao
On 2017/04/06 02:00:55, oshima wrote: > On 2017/04/05 23:59:22, wutao wrote: > > On 2017/04/05 ...
3 years, 8 months ago (2017-04-06 17:39:19 UTC) #25
afakhry
Nice! https://codereview.chromium.org/2802583002/diff/60001/ash/common/accelerators/accelerator_table_unittest.cc File ash/common/accelerators/accelerator_table_unittest.cc (right): https://codereview.chromium.org/2802583002/diff/60001/ash/common/accelerators/accelerator_table_unittest.cc#newcode8 ash/common/accelerators/accelerator_table_unittest.cc:8: #include "base/bit_cast.h" You don't need this header, do ...
3 years, 8 months ago (2017-04-06 17:50:30 UTC) #26
Daniel Erat
https://codereview.chromium.org/2802583002/diff/60001/ash/common/accelerators/accelerator_table_unittest.cc File ash/common/accelerators/accelerator_table_unittest.cc (right): https://codereview.chromium.org/2802583002/diff/60001/ash/common/accelerators/accelerator_table_unittest.cc#newcode19 ash/common/accelerators/accelerator_table_unittest.cc:19: // The snapshot of non-Search-based acclerators number. nit: s/acclerators/accelerators/, ...
3 years, 8 months ago (2017-04-06 18:04:56 UTC) #27
wutao
Hi derat@ and afakhry@ Please look again about the new hash method. Thanks. wutao@ https://codereview.chromium.org/2802583002/diff/60001/ash/common/accelerators/accelerator_table_unittest.cc ...
3 years, 8 months ago (2017-04-06 19:06:11 UTC) #28
Daniel Erat
lgtm thanks! https://codereview.chromium.org/2802583002/diff/80001/ash/common/accelerators/accelerator_table_unittest.cc File ash/common/accelerators/accelerator_table_unittest.cc (right): https://codereview.chromium.org/2802583002/diff/80001/ash/common/accelerators/accelerator_table_unittest.cc#newcode39 ash/common/accelerators/accelerator_table_unittest.cc:39: "action=%d", just using the integer value here ...
3 years, 8 months ago (2017-04-06 19:33:33 UTC) #29
afakhry
lgtm. Thank you for handling this! :)
3 years, 8 months ago (2017-04-06 20:58:39 UTC) #30
wutao
Hi Oshima, Could you please have a look. Thanks. Tao
3 years, 8 months ago (2017-04-07 00:34:21 UTC) #31
Daniel Erat
On 2017/04/07 00:34:21, wutao wrote: > Hi Oshima, > > Could you please have a ...
3 years, 8 months ago (2017-04-07 00:45:48 UTC) #32
wutao
On 2017/04/07 00:45:48, Daniel Erat wrote: > On 2017/04/07 00:34:21, wutao wrote: > > Hi ...
3 years, 8 months ago (2017-04-07 01:11:57 UTC) #33
Daniel Erat
oh, sorry. i remember seeing the sorting earlier now. :-) i think you should go ...
3 years, 8 months ago (2017-04-07 01:17:16 UTC) #34
oshima
On 2017/04/07 01:17:16, Daniel Erat wrote: > oh, sorry. i remember seeing the sorting earlier ...
3 years, 8 months ago (2017-04-07 01:52:16 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2802583002/80001
3 years, 8 months ago (2017-04-07 03:56:52 UTC) #41
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 04:56:27 UTC) #44
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/77744550580e6f83fa1ada19e8f9...

Powered by Google App Engine
This is Rietveld 408576698