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

Issue 2023933002: views/mus: Recreate WindowManagerConnection for each test. (Closed)

Created:
4 years, 6 months ago by sadrul
Modified:
4 years, 6 months ago
Reviewers:
jonross, sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

views/mus: Recreate WindowManagerConnection for each test. A new message-loop is created for each test, and when the message-loop dies after a test, it takes down the all connections to mojo:mus from WindowManagerConnection (and other places). So it is necessary to recreate the WindowManagerConnection for each test. BUG=none Committed: https://crrev.com/cf0664e7b1ef30b64cec1774af46ce20e9c68dfe Cr-Commit-Position: refs/heads/master@{#396949}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : . #

Patch Set 5 : tot-merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -12 lines) Patch
M ui/views/mus/views_mus_test_suite.cc View 1 3 chunks +27 lines, -12 lines 0 comments Download
M ui/views/mus/window_manager_connection.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
sadrul
(you will also need https://codereview.chromium.org/2023863003/ if you are running the tests on linux)
4 years, 6 months ago (2016-05-30 16:32:21 UTC) #2
jonross
On 2016/05/30 16:32:21, sadrul wrote: > (you will also need https://codereview.chromium.org/2023863003/ if you are > ...
4 years, 6 months ago (2016-05-30 16:49:38 UTC) #3
sadrul
+sky@ for owner
4 years, 6 months ago (2016-05-30 18:40:06 UTC) #5
sky
https://codereview.chromium.org/2023933002/diff/40001/ui/views/mus/views_mus_test_suite.cc File ui/views/mus/views_mus_test_suite.cc (right): https://codereview.chromium.org/2023933002/diff/40001/ui/views/mus/views_mus_test_suite.cc#newcode51 ui/views/mus/views_mus_test_suite.cc:51: ~PlatformTestHelperMus() override { WindowManagerConnection::Reset(); } Can you make ~WindowManagerConnection ...
4 years, 6 months ago (2016-05-31 18:01:27 UTC) #6
sadrul
https://codereview.chromium.org/2023933002/diff/40001/ui/views/mus/views_mus_test_suite.cc File ui/views/mus/views_mus_test_suite.cc (right): https://codereview.chromium.org/2023933002/diff/40001/ui/views/mus/views_mus_test_suite.cc#newcode51 ui/views/mus/views_mus_test_suite.cc:51: ~PlatformTestHelperMus() override { WindowManagerConnection::Reset(); } On 2016/05/31 18:01:27, sky ...
4 years, 6 months ago (2016-05-31 18:08:15 UTC) #7
sky
LGTM
4 years, 6 months ago (2016-05-31 20:51:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2023933002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2023933002/80001
4 years, 6 months ago (2016-05-31 22:13:26 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-05-31 22:19:11 UTC) #12
commit-bot: I haz the power
4 years, 6 months ago (2016-05-31 22:21:18 UTC) #14
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/cf0664e7b1ef30b64cec1774af46ce20e9c68dfe
Cr-Commit-Position: refs/heads/master@{#396949}

Powered by Google App Engine
This is Rietveld 408576698