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

Issue 2395873002: Add more options to --screen-config flag. (Closed)

Created:
4 years, 2 months ago by kylechar
Modified:
4 years, 2 months ago
Reviewers:
tfarina, Daniel Erat
CC:
chromium-reviews, rjkroege
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add more options to --screen-config flag. Allow the user to specify more options for each DisplaySnapshot created by FakeDisplayDelegate. Alternate resolutions, different refresh rates and various option toggles are added. Add tests for FakeDisplaySnapshot that verify the display specification string parsing. BUG=611475 Committed: https://crrev.com/3cabb1432a49769f618d868b218ad119709560d7 Cr-Commit-Position: refs/heads/master@{#425084}

Patch Set 1 #

Patch Set 2 : Small fixes after once over. #

Total comments: 28

Patch Set 3 : Fixes for comments. #

Patch Set 4 : Improve tests and spec description. #

Total comments: 7

Patch Set 5 : Improve tests / fixes. #

Total comments: 2

Patch Set 6 : Use matcher. #

Total comments: 4

Patch Set 7 : Move matcher + add epsilon. #

Total comments: 2

Patch Set 8 : Move include. #

Patch Set 9 : Fix that one test I changed to check error messages. #

Patch Set 10 : Fix windows compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+494 lines, -81 lines) Patch
M ui/display/BUILD.gn View 1 2 3 4 5 6 5 chunks +6 lines, -0 lines 0 comments Download
M ui/display/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/display/fake_display_delegate.h View 1 2 3 4 2 chunks +31 lines, -12 lines 0 comments Download
M ui/display/fake_display_delegate.cc View 1 5 chunks +16 lines, -31 lines 0 comments Download
M ui/display/fake_display_snapshot.h View 1 2 4 chunks +25 lines, -4 lines 0 comments Download
M ui/display/fake_display_snapshot.cc View 1 2 3 4 6 chunks +180 lines, -15 lines 0 comments Download
A ui/display/fake_display_snapshot_unittests.cc View 1 2 3 4 5 6 7 8 1 chunk +141 lines, -0 lines 0 comments Download
A ui/display/test/display_matchers.h View 1 2 3 4 5 6 1 chunk +19 lines, -0 lines 0 comments Download
A ui/display/test/display_matchers.cc View 1 2 3 4 5 6 7 8 9 1 chunk +48 lines, -0 lines 0 comments Download
M ui/display/types/display_mode.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M ui/display/types/display_mode.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M ui/display/types/display_snapshot.h View 5 chunks +6 lines, -5 lines 0 comments Download
M ui/display/types/display_snapshot.cc View 1 chunk +13 lines, -14 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 37 (18 generated)
kylechar
4 years, 2 months ago (2016-10-05 20:30:41 UTC) #2
Daniel Erat
cool, i mostly just have nits https://codereview.chromium.org/2395873002/diff/20001/ui/display/fake_display_delegate.h File ui/display/fake_display_delegate.h (right): https://codereview.chromium.org/2395873002/diff/20001/ui/display/fake_display_delegate.h#newcode30 ui/display/fake_display_delegate.h:30: // HxW[%R][#HxW[%R][:HxW[%R]]][^D][/[a][c][i][o]][,...] can ...
4 years, 2 months ago (2016-10-05 21:09:46 UTC) #3
kylechar
https://codereview.chromium.org/2395873002/diff/20001/ui/display/fake_display_delegate.h File ui/display/fake_display_delegate.h (right): https://codereview.chromium.org/2395873002/diff/20001/ui/display/fake_display_delegate.h#newcode30 ui/display/fake_display_delegate.h:30: // HxW[%R][#HxW[%R][:HxW[%R]]][^D][/[a][c][i][o]][,...] On 2016/10/05 21:09:45, Daniel Erat wrote: > ...
4 years, 2 months ago (2016-10-07 16:14:44 UTC) #4
Daniel Erat
thanks! i just have a few more comments. https://codereview.chromium.org/2395873002/diff/60001/ui/display/fake_display_delegate.cc File ui/display/fake_display_delegate.cc (right): https://codereview.chromium.org/2395873002/diff/60001/ui/display/fake_display_delegate.cc#newcode7 ui/display/fake_display_delegate.cc:7: #include ...
4 years, 2 months ago (2016-10-07 17:17:22 UTC) #5
kylechar
https://codereview.chromium.org/2395873002/diff/60001/ui/display/fake_display_snapshot.cc File ui/display/fake_display_snapshot.cc (right): https://codereview.chromium.org/2395873002/diff/60001/ui/display/fake_display_snapshot.cc#newcode70 ui/display/fake_display_snapshot.cc:70: // Extracts text after specified delimiter. If the delimiter ...
4 years, 2 months ago (2016-10-11 13:56:49 UTC) #6
kylechar
+thakis for DEPS on re2
4 years, 2 months ago (2016-10-11 14:01:54 UTC) #8
Daniel Erat
https://codereview.chromium.org/2395873002/diff/80001/ui/display/fake_display_snapshot_unittests.cc File ui/display/fake_display_snapshot_unittests.cc (right): https://codereview.chromium.org/2395873002/diff/80001/ui/display/fake_display_snapshot_unittests.cc#newcode22 ui/display/fake_display_snapshot_unittests.cc:22: void ExpectDisplayMode(const ui::DisplayMode* mode, the main reason i don't ...
4 years, 2 months ago (2016-10-11 15:50:06 UTC) #9
kylechar
If you're okay with the matcher approach then it should probably move to //ui/display/test but ...
4 years, 2 months ago (2016-10-11 20:39:04 UTC) #14
Daniel Erat
thanks, the matcher-based approach looks great. lgtm with a few comments https://codereview.chromium.org/2395873002/diff/100001/ui/display/fake_display_snapshot_unittests.cc File ui/display/fake_display_snapshot_unittests.cc (right): ...
4 years, 2 months ago (2016-10-11 21:00:31 UTC) #15
kylechar
https://codereview.chromium.org/2395873002/diff/100001/ui/display/fake_display_snapshot_unittests.cc File ui/display/fake_display_snapshot_unittests.cc (right): https://codereview.chromium.org/2395873002/diff/100001/ui/display/fake_display_snapshot_unittests.cc#newcode30 ui/display/fake_display_snapshot_unittests.cc:30: virtual bool MatchAndExplain(const ui::DisplayMode& mode, On 2016/10/11 21:00:31, Daniel ...
4 years, 2 months ago (2016-10-12 13:24:50 UTC) #16
kylechar
+tfarina for DEPS on third_party/re2 instead.
4 years, 2 months ago (2016-10-12 13:47:52 UTC) #19
Daniel Erat
lgtm
4 years, 2 months ago (2016-10-12 14:50:50 UTC) #20
tfarina
RE2 dependency LGTM. https://codereview.chromium.org/2395873002/diff/140001/ui/display/fake_display_snapshot_unittests.cc File ui/display/fake_display_snapshot_unittests.cc (right): https://codereview.chromium.org/2395873002/diff/140001/ui/display/fake_display_snapshot_unittests.cc#newcode10 ui/display/fake_display_snapshot_unittests.cc:10: #include "ui/display/fake_display_snapshot.h" We usually put this ...
4 years, 2 months ago (2016-10-13 13:15:42 UTC) #21
kylechar
Thanks! https://codereview.chromium.org/2395873002/diff/140001/ui/display/fake_display_snapshot_unittests.cc File ui/display/fake_display_snapshot_unittests.cc (right): https://codereview.chromium.org/2395873002/diff/140001/ui/display/fake_display_snapshot_unittests.cc#newcode10 ui/display/fake_display_snapshot_unittests.cc:10: #include "ui/display/fake_display_snapshot.h" On 2016/10/13 13:15:42, tfarina wrote: > ...
4 years, 2 months ago (2016-10-13 13:32:29 UTC) #22
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/2395873002/180001
4 years, 2 months ago (2016-10-13 14:07:51 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/102363)
4 years, 2 months ago (2016-10-13 14:45:51 UTC) #31
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/2395873002/200001
4 years, 2 months ago (2016-10-13 16:00:42 UTC) #34
commit-bot: I haz the power
Committed patchset #10 (id:200001)
4 years, 2 months ago (2016-10-13 18:03:58 UTC) #35
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 18:06:55 UTC) #37
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/3cabb1432a49769f618d868b218ad119709560d7
Cr-Commit-Position: refs/heads/master@{#425084}

Powered by Google App Engine
This is Rietveld 408576698