Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc |
index e250553aba61d6018a5a16abead22ca3940f83a2..5bbd73193109df70992d11f45ee310e45542e501 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc |
@@ -3871,8 +3871,8 @@ TEST_P(GLES2DecoderWithShaderTest, CopyTexImage) { |
// Bind image to texture. |
EXPECT_CALL(*image.get(), BindTexImage(GL_TEXTURE_2D)) |
- .Times(1) |
- .WillOnce(Return(false)) |
+ .Times(2) |
+ .WillRepeatedly(Return(false)) |
.RetiresOnSaturation(); |
EXPECT_CALL(*image.get(), GetSize()) |
.Times(1) |
@@ -3907,13 +3907,15 @@ TEST_P(GLES2DecoderWithShaderTest, CopyTexImage) { |
EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
DoBindTexture(GL_TEXTURE_2D, client_texture_id_, kServiceTextureId); |
+ |
+ Mock::VerifyAndClearExpectations(gl_.get()); |
// Re-bind image to texture. |
ReleaseTexImage2DCHROMIUM release_tex_image_2d_cmd; |
release_tex_image_2d_cmd.Init(GL_TEXTURE_2D, kImageId); |
EXPECT_EQ(error::kNoError, ExecuteCmd(release_tex_image_2d_cmd)); |
EXPECT_CALL(*image.get(), BindTexImage(GL_TEXTURE_2D)) |
- .Times(1) |
- .WillOnce(Return(false)) |
+ .Times(2) |
+ .WillRepeatedly(Return(false)) |
.RetiresOnSaturation(); |
EXPECT_CALL(*image.get(), GetSize()) |
.Times(1) |