| Index: gpu/command_buffer/service/test_helper.cc
|
| diff --git a/gpu/command_buffer/service/test_helper.cc b/gpu/command_buffer/service/test_helper.cc
|
| index 4e55dad18c1176b98b0dc422162118b4a75c1028..79c29c54fb7f7e118f038f8b21deb45704bfa861 100644
|
| --- a/gpu/command_buffer/service/test_helper.cc
|
| +++ b/gpu/command_buffer/service/test_helper.cc
|
| @@ -367,11 +367,11 @@ void TestHelper::SetupFeatureInfoInitExpectationsWithGLVersion(
|
| EXPECT_CALL(*gl, BindTexture(GL_TEXTURE_2D, gl_ids[0]))
|
| .Times(1)
|
| .RetiresOnSaturation();
|
| - if (DCHECK_IS_ON()) {
|
| - EXPECT_CALL(*gl, GetError())
|
| - .WillOnce(Return(GL_NO_ERROR))
|
| - .RetiresOnSaturation();
|
| - }
|
| +#if DCHECK_IS_ON
|
| + EXPECT_CALL(*gl, GetError())
|
| + .WillOnce(Return(GL_NO_ERROR))
|
| + .RetiresOnSaturation();
|
| +#endif
|
| }
|
| }
|
|
|
|
|