| Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest_1.cc
|
| ===================================================================
|
| --- gpu/command_buffer/service/gles2_cmd_decoder_unittest_1.cc (revision 69969)
|
| +++ gpu/command_buffer/service/gles2_cmd_decoder_unittest_1.cc (working copy)
|
| @@ -88,11 +88,17 @@
|
| DoBindFramebuffer(GL_FRAMEBUFFER, client_framebuffer_id_,
|
| kServiceFramebufferId);
|
| if (valid) {
|
| + EXPECT_CALL(*gl_, GetError())
|
| + .WillOnce(Return(GL_NO_ERROR))
|
| + .RetiresOnSaturation();
|
| // Return GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT so the code
|
| // doesn't try to clear the buffer. That is tested else where.
|
| EXPECT_CALL(*gl_, CheckFramebufferStatusEXT(GL_FRAMEBUFFER))
|
| .WillOnce(Return(GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT))
|
| .RetiresOnSaturation();
|
| + EXPECT_CALL(*gl_, GetError())
|
| + .WillOnce(Return(GL_NO_ERROR))
|
| + .RetiresOnSaturation();
|
| }
|
| };
|
|
|
| @@ -102,11 +108,17 @@
|
| DoBindFramebuffer(GL_FRAMEBUFFER, client_framebuffer_id_,
|
| kServiceFramebufferId);
|
| if (valid) {
|
| + EXPECT_CALL(*gl_, GetError())
|
| + .WillOnce(Return(GL_NO_ERROR))
|
| + .RetiresOnSaturation();
|
| // Return GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT so the code
|
| // doesn't try to clear the buffer. That is tested else where.
|
| EXPECT_CALL(*gl_, CheckFramebufferStatusEXT(GL_FRAMEBUFFER))
|
| .WillOnce(Return(GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT))
|
| .RetiresOnSaturation();
|
| + EXPECT_CALL(*gl_, GetError())
|
| + .WillOnce(Return(GL_NO_ERROR))
|
| + .RetiresOnSaturation();
|
| }
|
| };
|
|
|
|
|