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

Issue 11782026: ThreadedTest that a non-null OutputSurface that fails initialization immediately doesn't crash (Closed)

Created:
7 years, 11 months ago by jamesr
Modified:
7 years, 11 months ago
Reviewers:
danakj
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

ThreadedTest that a non-null OutputSurface that fails initialization immediately doesn't crash Unit test to catch things like bug 168691 BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175632 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176184

Patch Set 1 #

Total comments: 1

Patch Set 2 : bail more forcibly at end of test #

Patch Set 3 : patch ThreadProxy::commitPendingOnImplThreadForTesting to check for a live output surface #

Total comments: 2

Patch Set 4 : moar subclass #

Total comments: 2

Patch Set 5 : fix hang #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -1 line) Patch
M cc/layer_tree_host_unittest_context.cc View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download
M cc/thread_proxy.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
jamesr
7 years, 11 months ago (2013-01-08 00:42:30 UTC) #1
danakj
LGTM and thanks for the test. https://codereview.chromium.org/11782026/diff/1/cc/layer_tree_host_unittest_context.cc File cc/layer_tree_host_unittest_context.cc (right): https://codereview.chromium.org/11782026/diff/1/cc/layer_tree_host_unittest_context.cc#newcode810 cc/layer_tree_host_unittest_context.cc:810: new FakeWebGraphicsContext3DMakeCurrentFails); I ...
7 years, 11 months ago (2013-01-08 00:49:08 UTC) #2
jamesr
This crashes pre-http://src.chromium.org/viewvc/chrome?view=rev&revision=175416 as expected. After that rev, it doesn't crash but it also never ...
7 years, 11 months ago (2013-01-08 00:50:49 UTC) #3
danakj
On 2013/01/08 00:50:49, jamesr wrote: > This crashes pre-http://src.chromium.org/viewvc/chrome?view=rev&revision=175416 > as expected. > > After ...
7 years, 11 months ago (2013-01-08 00:52:32 UTC) #4
jamesr1
On Mon, Jan 7, 2013 at 4:52 PM, <danakj@chromium.org> wrote: > On 2013/01/08 00:50:49, jamesr ...
7 years, 11 months ago (2013-01-08 00:55:06 UTC) #5
danakj
On 2013/01/08 00:55:06, jamesr1 wrote: > That's not testing the same thing, then. We should ...
7 years, 11 months ago (2013-01-08 01:02:59 UTC) #6
jamesr
How about this? The fact that this test is looking for pending commits is pretty ...
7 years, 11 months ago (2013-01-08 01:03:42 UTC) #7
danakj
https://codereview.chromium.org/11782026/diff/10003/cc/layer_tree_host_unittest_context.cc File cc/layer_tree_host_unittest_context.cc (right): https://codereview.chromium.org/11782026/diff/10003/cc/layer_tree_host_unittest_context.cc#newcode783 cc/layer_tree_host_unittest_context.cc:783: class LayerTreeHostContextTestFailsImmediately : public ThreadedTest { Oh, subclass from ...
7 years, 11 months ago (2013-01-08 01:06:50 UTC) #8
jamesr
On 2013/01/08 01:06:50, danakj wrote: > https://codereview.chromium.org/11782026/diff/10003/cc/layer_tree_host_unittest_context.cc > File cc/layer_tree_host_unittest_context.cc (right): > > https://codereview.chromium.org/11782026/diff/10003/cc/layer_tree_host_unittest_context.cc#newcode783 > ...
7 years, 11 months ago (2013-01-08 01:09:54 UTC) #9
danakj
On 2013/01/08 01:09:54, jamesr wrote: > On 2013/01/08 01:06:50, danakj wrote: > > > https://codereview.chromium.org/11782026/diff/10003/cc/layer_tree_host_unittest_context.cc ...
7 years, 11 months ago (2013-01-08 01:11:48 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/11782026/21001
7 years, 11 months ago (2013-01-08 01:30:51 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/11782026/21001
7 years, 11 months ago (2013-01-08 20:58:09 UTC) #12
commit-bot: I haz the power
Change committed as 175632
7 years, 11 months ago (2013-01-09 00:28:12 UTC) #13
danakj
https://chromiumcodereview.appspot.com/11782026/diff/21001/cc/thread_proxy.cc File cc/thread_proxy.cc (right): https://chromiumcodereview.appspot.com/11782026/diff/21001/cc/thread_proxy.cc#newcode1016 cc/thread_proxy.cc:1016: request->commitPending = m_schedulerOnImplThread->commitPending(); else commitPending = false; I suspect ...
7 years, 11 months ago (2013-01-09 01:39:59 UTC) #14
jamesr
https://chromiumcodereview.appspot.com/11782026/diff/21001/cc/thread_proxy.cc File cc/thread_proxy.cc (right): https://chromiumcodereview.appspot.com/11782026/diff/21001/cc/thread_proxy.cc#newcode1016 cc/thread_proxy.cc:1016: request->commitPending = m_schedulerOnImplThread->commitPending(); On 2013/01/09 01:39:59, danakj wrote: > ...
7 years, 11 months ago (2013-01-09 19:35:41 UTC) #15
danakj
Ya, LGTM. I think this will address the seemingly random hangs, but I'm not certain ...
7 years, 11 months ago (2013-01-09 20:56:13 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/11782026/30001
7 years, 11 months ago (2013-01-10 18:47:26 UTC) #17
commit-bot: I haz the power
7 years, 11 months ago (2013-01-10 22:42:02 UTC) #18
Message was sent while issue was closed.
Change committed as 176184

Powered by Google App Engine
This is Rietveld 408576698