Index: cc/output/output_surface_unittest.cc |
diff --git a/cc/output/output_surface_unittest.cc b/cc/output/output_surface_unittest.cc |
index 1d13454b3148f1944bbb9dbecd38bd66c1345b12..73a76a335d379d07bfcdcef9d15c9533dd6590f4 100644 |
--- a/cc/output/output_surface_unittest.cc |
+++ b/cc/output/output_surface_unittest.cc |
@@ -143,8 +143,9 @@ TEST(OutputSurfaceTest, ClientPointerIndicatesBindToClientSuccess) { |
// Verify DidLoseOutputSurface callback is hooked up correctly. |
EXPECT_FALSE(client.did_lose_output_surface_called()); |
- provider->TestContext3d()->loseContextCHROMIUM( |
+ output_surface.context_provider()->ContextGL()->LoseContextCHROMIUM( |
GL_GUILTY_CONTEXT_RESET_ARB, GL_INNOCENT_CONTEXT_RESET_ARB); |
+ output_surface.context_provider()->ContextGL()->Flush(); |
EXPECT_TRUE(client.did_lose_output_surface_called()); |
} |
@@ -198,8 +199,9 @@ TEST_F(OutputSurfaceTestInitializeNewContext3d, Success) { |
EXPECT_EQ(context_provider_, output_surface_.context_provider()); |
EXPECT_FALSE(client_.did_lose_output_surface_called()); |
- context_provider_->TestContext3d()->loseContextCHROMIUM( |
+ context_provider_->ContextGL()->LoseContextCHROMIUM( |
GL_GUILTY_CONTEXT_RESET_ARB, GL_INNOCENT_CONTEXT_RESET_ARB); |
+ context_provider_->ContextGL()->Flush(); |
EXPECT_TRUE(client_.did_lose_output_surface_called()); |
output_surface_.ReleaseGL(); |