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

Issue 2749933002: cc: Fix a flake in ImageControllerTest.QueueImageDecodeChangeControllerWithTaskQueued (Closed)

Created:
3 years, 9 months ago by vmpstr
Modified:
3 years, 9 months ago
Reviewers:
danakj, ericrk
CC:
chromium-reviews, cc-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Fix a flake in ImageControllerTest.QueueImageDecodeChangeControllerWithTaskQueued ThreadChecker can't be used to check for "false", since debug implementations always return true. This patch fixes that by using ThreadCheckerImpl instead. The reason it is a flake and not a consistent repro is that the function may or may not have run (this is expected by tests). BUG=701065 R=ericrk@chromium.org, danakj@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2749933002 Cr-Commit-Position: refs/heads/master@{#457135} Committed: https://chromium.googlesource.com/chromium/src/+/9eff7fc87045e048e489824abc6c1be9403ef7bc

Patch Set 1 #

Total comments: 3

Patch Set 2 : threadcheckerimpl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M cc/tiles/image_controller_unittest.cc View 1 3 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
vmpstr
Please take a look.
3 years, 9 months ago (2017-03-14 21:08:40 UTC) #2
danakj
LGTM https://codereview.chromium.org/2749933002/diff/1/cc/tiles/image_controller_unittest.cc File cc/tiles/image_controller_unittest.cc (left): https://codereview.chromium.org/2749933002/diff/1/cc/tiles/image_controller_unittest.cc#oldcode193 cc/tiles/image_controller_unittest.cc:193: EXPECT_FALSE(thread_checker_.CalledOnValidThread()); You could #if DCHECK_IS_ON() or smoething if ...
3 years, 9 months ago (2017-03-14 21:10:12 UTC) #3
danakj
https://codereview.chromium.org/2749933002/diff/1/cc/tiles/image_controller_unittest.cc File cc/tiles/image_controller_unittest.cc (left): https://codereview.chromium.org/2749933002/diff/1/cc/tiles/image_controller_unittest.cc#oldcode193 cc/tiles/image_controller_unittest.cc:193: EXPECT_FALSE(thread_checker_.CalledOnValidThread()); On 2017/03/14 21:10:11, danakj wrote: > You could ...
3 years, 9 months ago (2017-03-14 21:10:46 UTC) #4
vmpstr
https://codereview.chromium.org/2749933002/diff/1/cc/tiles/image_controller_unittest.cc File cc/tiles/image_controller_unittest.cc (left): https://codereview.chromium.org/2749933002/diff/1/cc/tiles/image_controller_unittest.cc#oldcode193 cc/tiles/image_controller_unittest.cc:193: EXPECT_FALSE(thread_checker_.CalledOnValidThread()); On 2017/03/14 21:10:46, danakj wrote: > On 2017/03/14 ...
3 years, 9 months ago (2017-03-15 17:41:57 UTC) #6
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/2749933002/20001
3 years, 9 months ago (2017-03-15 17:42:33 UTC) #9
commit-bot: I haz the power
3 years, 9 months ago (2017-03-15 17:58:12 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/9eff7fc87045e048e489824abc6c...

Powered by Google App Engine
This is Rietveld 408576698