Index: cc/trees/layer_tree_host_unittest_context.cc |
diff --git a/cc/trees/layer_tree_host_unittest_context.cc b/cc/trees/layer_tree_host_unittest_context.cc |
index 07e12a227575d0f663532918b007d8a09562f57a..434a468431d54d78718dea35bf5d8873758f8cb1 100644 |
--- a/cc/trees/layer_tree_host_unittest_context.cc |
+++ b/cc/trees/layer_tree_host_unittest_context.cc |
@@ -107,6 +107,13 @@ class LayerTreeHostContextTest : public LayerTreeTest { |
LayerTreeHostImpl* host_impl, |
LayerTreeHostImpl::FrameData* frame, |
DrawResult draw_result) OVERRIDE { |
+ if (draw_result == DRAW_ABORTED_MISSING_HIGH_RES_CONTENT) { |
+ // Only valid for single-threaded impl-side painting, which activates |
+ // immediately and will try to draw again when content has finished. |
+ DCHECK(!host_impl->proxy()->HasImplThread()); |
+ DCHECK(layer_tree_host()->settings().impl_side_painting); |
+ return draw_result; |
+ } |
EXPECT_EQ(DRAW_SUCCESS, draw_result); |
if (!times_to_lose_during_draw_) |
return draw_result; |