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

Issue 939673002: Test that visual state callbacks do not deadlock. (Closed)

Created:
5 years, 10 months ago by Ignacio Solla
Modified:
5 years, 10 months ago
Reviewers:
piman, Sami, no sievers
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@breakSwapIfNoUpdates
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Test that visual state callbacks do not deadlock. Visual state callbacks should always be received, even if there are no pending commits. We add a test for that. See crbug/458577 for more details. BUG=458577 Committed: https://crrev.com/dcc18cb569b31bc07c97d49573e695ec8b1f80c0 Cr-Commit-Position: refs/heads/master@{#317306}

Patch Set 1 #

Patch Set 2 : #

Total comments: 11

Patch Set 3 : Increase timeout #

Patch Set 4 : Address review comments #

Total comments: 2

Patch Set 5 : Add iddle check #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -4 lines) Patch
M content/content_tests.gypi View 1 2 3 4 4 chunks +5 lines, -4 lines 0 comments Download
A content/renderer/visual_state_browsertest.cc View 1 2 3 4 1 chunk +110 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (5 generated)
Ignacio Solla
5 years, 10 months ago (2015-02-18 14:22:36 UTC) #2
Sami
https://codereview.chromium.org/939673002/diff/20001/content/content_tests.gypi File content/content_tests.gypi (right): https://codereview.chromium.org/939673002/diff/20001/content/content_tests.gypi#newcode1594 content/content_tests.gypi:1594: }, { # OS!="android" Did you mean to change ...
5 years, 10 months ago (2015-02-18 16:12:22 UTC) #3
piman
https://codereview.chromium.org/939673002/diff/20001/content/renderer/visual_state_browsertest.cc File content/renderer/visual_state_browsertest.cc (right): https://codereview.chromium.org/939673002/diff/20001/content/renderer/visual_state_browsertest.cc#newcode29 content/renderer/visual_state_browsertest.cc:29: const base::TimeDelta kCommitTimeout = base::TimeDelta::FromMilliseconds(150); Please no timeout. This ...
5 years, 10 months ago (2015-02-18 16:37:18 UTC) #4
Ignacio Solla
https://codereview.chromium.org/939673002/diff/20001/content/content_tests.gypi File content/content_tests.gypi (right): https://codereview.chromium.org/939673002/diff/20001/content/content_tests.gypi#newcode1594 content/content_tests.gypi:1594: }, { # OS!="android" On 2015/02/18 16:12:22, Sami wrote: ...
5 years, 10 months ago (2015-02-18 16:42:35 UTC) #5
Ignacio Solla
Note that I may need to increase the timeout until these tests start passing on ...
5 years, 10 months ago (2015-02-18 16:43:12 UTC) #6
Ignacio Solla
https://codereview.chromium.org/939673002/diff/20001/content/renderer/visual_state_browsertest.cc File content/renderer/visual_state_browsertest.cc (right): https://codereview.chromium.org/939673002/diff/20001/content/renderer/visual_state_browsertest.cc#newcode29 content/renderer/visual_state_browsertest.cc:29: const base::TimeDelta kCommitTimeout = base::TimeDelta::FromMilliseconds(150); On 2015/02/18 16:37:18, piman ...
5 years, 10 months ago (2015-02-18 17:01:59 UTC) #7
piman
On Wed, Feb 18, 2015 at 12:01 PM, <igsolla@chromium.org> wrote: > > https://codereview.chromium.org/939673002/diff/20001/ > content/renderer/visual_state_browsertest.cc ...
5 years, 10 months ago (2015-02-18 22:47:19 UTC) #8
Ignacio Solla
> A test can be written that inspects internal state rather than relying on > ...
5 years, 10 months ago (2015-02-19 10:43:01 UTC) #9
Sami
https://codereview.chromium.org/939673002/diff/60001/content/renderer/visual_state_browsertest.cc File content/renderer/visual_state_browsertest.cc (right): https://codereview.chromium.org/939673002/diff/60001/content/renderer/visual_state_browsertest.cc#newcode52 content/renderer/visual_state_browsertest.cc:52: EXPECT_EQ(1, observer.GetCommitCount()); I think if you add a DCHECK ...
5 years, 10 months ago (2015-02-19 10:59:35 UTC) #10
Ignacio Solla
https://codereview.chromium.org/939673002/diff/60001/content/renderer/visual_state_browsertest.cc File content/renderer/visual_state_browsertest.cc (right): https://codereview.chromium.org/939673002/diff/60001/content/renderer/visual_state_browsertest.cc#newcode52 content/renderer/visual_state_browsertest.cc:52: EXPECT_EQ(1, observer.GetCommitCount()); On 2015/02/19 10:59:34, Sami wrote: > I ...
5 years, 10 months ago (2015-02-19 11:53:54 UTC) #11
Ignacio Solla
On 2015/02/19 11:53:54, Ignacio Solla wrote: > https://codereview.chromium.org/939673002/diff/60001/content/renderer/visual_state_browsertest.cc > File content/renderer/visual_state_browsertest.cc (right): > > https://codereview.chromium.org/939673002/diff/60001/content/renderer/visual_state_browsertest.cc#newcode52 ...
5 years, 10 months ago (2015-02-19 13:25:40 UTC) #12
piman
On Thu, Feb 19, 2015 at 5:43 AM, <igsolla@chromium.org> wrote: > > A test can ...
5 years, 10 months ago (2015-02-19 23:33:24 UTC) #13
piman
LGTM, but please file a bug to explore: 1- how to correctly assert that no ...
5 years, 10 months ago (2015-02-19 23:37:12 UTC) #14
Ignacio Solla
> What do you mean by "load requires a single commit" exactly? 1) That no ...
5 years, 10 months ago (2015-02-20 10:18:28 UTC) #15
Ignacio Solla
On 2015/02/19 23:37:12, piman (Very slow to review) wrote: > LGTM, but please file a ...
5 years, 10 months ago (2015-02-20 10:37:08 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/939673002/100001
5 years, 10 months ago (2015-02-20 12:34:51 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/939673002/100001
5 years, 10 months ago (2015-02-20 12:37:18 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 10 months ago (2015-02-20 13:25:42 UTC) #23
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/dcc18cb569b31bc07c97d49573e695ec8b1f80c0 Cr-Commit-Position: refs/heads/master@{#317306}
5 years, 10 months ago (2015-02-20 13:26:08 UTC) #24
Ken Russell (switch to Gerrit)
5 years, 10 months ago (2015-02-20 20:00:35 UTC) #25
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/942973002/ by kbr@chromium.org.

The reason for reverting is: Timing out on Blink waterfall. See
https://code.google.com/p/chromium/issues/detail?id=458577#c10 .
.

Powered by Google App Engine
This is Rietveld 408576698