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

Issue 2512593003: Cleanup display creation in mus tests. (Closed)

Created:
4 years, 1 month ago by kylechar
Modified:
4 years, 1 month ago
Reviewers:
sky
CC:
chromium-reviews, rjkroege
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup display creation in mus tests. Create displays via PlatformScreen. DisplayTests will now run the same code as mustash. Expand TestPlatformScreen to allow this. It forwards OnDisplayAdded(), OnDisplayModified() and OnDisplayRemoved() calls. The test is responsible for making the appropriate calls. Add new DisplayTests to confirm that creating a display before a WM has been added works correctly. Also add tests to check that the display root and WM root ServerWindows are the correct size for a display. BUG=663907 Committed: https://crrev.com/9298c5ee41f3c4c0078574d72955876ecf8c3b4b Cr-Commit-Position: refs/heads/master@{#433272}

Patch Set 1 #

Patch Set 2 : Cleanup. #

Total comments: 2

Patch Set 3 : Make const. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+315 lines, -183 lines) Patch
M services/ui/ws/cursor_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M services/ui/ws/display_unittest.cc View 1 10 chunks +157 lines, -102 lines 0 comments Download
M services/ui/ws/platform_display.h View 1 chunk +0 lines, -2 lines 0 comments Download
M services/ui/ws/platform_display.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/platform_display_default.h View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M services/ui/ws/platform_display_default.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M services/ui/ws/platform_display_factory.h View 1 chunk +3 lines, -1 line 0 comments Download
M services/ui/ws/test_utils.h View 1 2 6 chunks +54 lines, -9 lines 0 comments Download
M services/ui/ws/test_utils.cc View 1 2 6 chunks +75 lines, -31 lines 0 comments Download
M services/ui/ws/user_display_manager_unittest.cc View 6 chunks +14 lines, -26 lines 0 comments Download
M services/ui/ws/window_manager_state_unittest.cc View 1 chunk +3 lines, -1 line 0 comments Download
M services/ui/ws/window_tree_unittest.cc View 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
kylechar
4 years, 1 month ago (2016-11-18 13:52:32 UTC) #3
sky
LGTM https://codereview.chromium.org/2512593003/diff/20001/services/ui/ws/test_utils.cc File services/ui/ws/test_utils.cc (right): https://codereview.chromium.org/2512593003/diff/20001/services/ui/ws/test_utils.cc#newcode70 services/ui/ws/test_utils.cc:70: int64_t id_; const if you can.
4 years, 1 month ago (2016-11-18 16:57:40 UTC) #4
kylechar
Thanks sky! https://codereview.chromium.org/2512593003/diff/20001/services/ui/ws/test_utils.cc File services/ui/ws/test_utils.cc (right): https://codereview.chromium.org/2512593003/diff/20001/services/ui/ws/test_utils.cc#newcode70 services/ui/ws/test_utils.cc:70: int64_t id_; On 2016/11/18 16:57:39, sky wrote: ...
4 years, 1 month ago (2016-11-18 17:27:07 UTC) #5
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/2512593003/40001
4 years, 1 month ago (2016-11-18 19:29:58 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-18 19:59:53 UTC) #13
commit-bot: I haz the power
4 years, 1 month ago (2016-11-18 20:04:02 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9298c5ee41f3c4c0078574d72955876ecf8c3b4b
Cr-Commit-Position: refs/heads/master@{#433272}

Powered by Google App Engine
This is Rietveld 408576698