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

Issue 2740123002: Disable unit tests for Window Manager Client in external window mode (Closed)

Created:
3 years, 9 months ago by fwang
Modified:
3 years, 9 months ago
Reviewers:
msw
CC:
chromium-reviews, rjkroege, kylechar, tonikitoo
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Disable unit tests for Window Manager Client in external window mode After [1], no default display is created at the startup of the window server, making the following mus_ws_unitests hang: WindowServerTest.OnWindowHierarchyChangedIncludesTransientParent WindowServerTest.RootWindow WindowServerTest.Embed WindowServerTest.EmbeddedDoesntSeeChild WindowServerTest.SetBounds WindowServerTest.SetBoundsSecurity WindowServerTest.DestroySecurity WindowServerTest.MultiRoots WindowServerTest.Reorder WindowServerTest.Visible WindowServerTest.EmbedFailsWithChildren WindowServerTest.WindowServerDestroyedAfterRootObserver WindowServerTest.ClientAreaChanged WindowServerTest.EstablishConnectionViaFactory The issue is that WindowServerTestBase::SetUp is designed to wait until OnWmNewDisplay is called to be sure that a display (and root) is available, which never happens in external window mode. The above tests check WindowManagerClient and this class is not needed in external mode since the host system is always the window manager. Hence this CL disables these tests in external window mode, making mus_ws_unitests pass again on the corresponding platforms. [1] https://codereview.chromium.org/2697693002/ BUG=666958 Review-Url: https://codereview.chromium.org/2740123002 Cr-Commit-Position: refs/heads/master@{#455902} Committed: https://chromium.googlesource.com/chromium/src/+/7dac3c6c0969d2c407213199691841e29baf3979

Patch Set 1 #

Total comments: 1

Patch Set 2 : Use variable for is_external_mode and fix syntax error #

Patch Set 3 : Conditional should be !external_mode... #

Total comments: 2

Patch Set 4 : Add a comment about external mode. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -3 lines) Patch
M services/ui/ws/BUILD.gn View 1 2 3 3 chunks +20 lines, -3 lines 0 comments Download

Messages

Total messages: 19 (13 generated)
kylechar
https://codereview.chromium.org/2740123002/diff/1/services/ui/ws/BUILD.gn File services/ui/ws/BUILD.gn (right): https://codereview.chromium.org/2740123002/diff/1/services/ui/ws/BUILD.gn#newcode176 services/ui/ws/BUILD.gn:176: if (!use_ozone || is_chromeos) { Add a variable that ...
3 years, 9 months ago (2017-03-09 15:26:28 UTC) #2
fwang
PTAL
3 years, 9 months ago (2017-03-09 15:57:02 UTC) #5
msw
lgtm with a nit https://codereview.chromium.org/2740123002/diff/40001/services/ui/ws/BUILD.gn File services/ui/ws/BUILD.gn (right): https://codereview.chromium.org/2740123002/diff/40001/services/ui/ws/BUILD.gn#newcode12 services/ui/ws/BUILD.gn:12: is_external_mode = use_ozone && !is_chromeos ...
3 years, 9 months ago (2017-03-09 16:51:23 UTC) #10
fwang
https://codereview.chromium.org/2740123002/diff/40001/services/ui/ws/BUILD.gn File services/ui/ws/BUILD.gn (right): https://codereview.chromium.org/2740123002/diff/40001/services/ui/ws/BUILD.gn#newcode12 services/ui/ws/BUILD.gn:12: is_external_mode = use_ozone && !is_chromeos On 2017/03/09 16:51:22, msw ...
3 years, 9 months ago (2017-03-09 21:52:49 UTC) #13
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/2740123002/60001
3 years, 9 months ago (2017-03-09 21:53:53 UTC) #16
commit-bot: I haz the power
3 years, 9 months ago (2017-03-09 23:46:25 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/7dac3c6c0969d2c4072131996918...

Powered by Google App Engine
This is Rietveld 408576698