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

Issue 1126973002: cc: Make HasImplThread() function work in AfterTest(). (Closed)

Created:
5 years, 7 months ago by mithro-old
Modified:
5 years, 7 months ago
Reviewers:
danakj
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Make HasImplThread() function work in AfterTest(). Before we run AfterTest() the layer_tree_host is destroyed (to allow AfterTest to check that proper cleanup has occurred) which means that the proxy() object is null. This means that HasImplThread() would previously return false in the AfterTest() method even when running on a test which was created using RunTest(threaded=true). R=danakj Committed: https://crrev.com/e88f9dd1cf36789957044409e97e63987c23307c Cr-Commit-Position: refs/heads/master@{#328667}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rebasing for landing. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -1 line) Patch
M cc/test/layer_tree_test.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
mithro-old
Hi Dana, This patch adds a test which shows the HasImplThread() failure and one possible ...
5 years, 7 months ago (2015-05-06 01:35:42 UTC) #1
danakj
LGTM https://codereview.chromium.org/1126973002/diff/1/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/1126973002/diff/1/cc/trees/layer_tree_host_unittest.cc#newcode89 cc/trees/layer_tree_host_unittest.cc:89: class LayerTreeHostTestHasImplThreadTest : public LayerTreeHostTest { while i ...
5 years, 7 months ago (2015-05-06 22:39:08 UTC) #2
mithro-old
https://codereview.chromium.org/1126973002/diff/1/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/1126973002/diff/1/cc/trees/layer_tree_host_unittest.cc#newcode111 cc/trees/layer_tree_host_unittest.cc:111: SINGLE_AND_MULTI_THREAD_IMPL_TEST_F(LayerTreeHostTestHasImplThreadTest); On 2015/05/06 22:39:08, danakj wrote: > whitespace after ...
5 years, 7 months ago (2015-05-06 23:24:44 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1126973002/20001
5 years, 7 months ago (2015-05-06 23:25:37 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 7 months ago (2015-05-07 00:44:57 UTC) #7
commit-bot: I haz the power
5 years, 7 months ago (2015-05-07 00:46:19 UTC) #8
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e88f9dd1cf36789957044409e97e63987c23307c
Cr-Commit-Position: refs/heads/master@{#328667}

Powered by Google App Engine
This is Rietveld 408576698