Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc |
index c704c285820ed0ae98fa700f59888b0a2f3c7600..ebb3d6055ab12c033d22a99bb4bc89c28fcb3c6e 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc |
@@ -830,6 +830,17 @@ void GLES2DecoderTestBase::DoBindBuffer( |
EXPECT_CALL(*gl_, BindBuffer(target, service_id)) |
.Times(1) |
.RetiresOnSaturation(); |
+ if (target == GL_PIXEL_PACK_BUFFER) { |
+ EXPECT_CALL(*gl_, PixelStorei(GL_PACK_ROW_LENGTH, _)) |
+ .Times(1) |
+ .RetiresOnSaturation(); |
+ EXPECT_CALL(*gl_, PixelStorei(GL_PACK_SKIP_PIXELS, _)) |
+ .Times(1) |
+ .RetiresOnSaturation(); |
+ EXPECT_CALL(*gl_, PixelStorei(GL_PACK_SKIP_ROWS, _)) |
+ .Times(1) |
+ .RetiresOnSaturation(); |
+ } |
cmds::BindBuffer cmd; |
cmd.Init(target, client_id); |
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |