| 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 b4ce41f18c7e54b923fd40c3ef58603cd08f1499..0c400fb193c92f4ee216609318ba0050d950b11b 100644
|
| --- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc
|
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc
|
| @@ -232,6 +232,21 @@ void GLES2DecoderTestBase::InitDecoderWithCommandLine(
|
| EXPECT_CALL(*mock_decoder_, DoCommands(_, _, _, _)).WillRepeatedly(
|
| Invoke(mock_decoder_.get(), &MockGLES2Decoder::FakeDoCommands));
|
|
|
| + EXPECT_CALL(*gl_, GetString(GL_VERSION))
|
| + .WillOnce(Return(
|
| + reinterpret_cast<const uint8_t*>(
|
| + normalized_init.gl_version.c_str())))
|
| + .RetiresOnSaturation();
|
| + std::unique_ptr<gl::GLVersionInfo> version_info;
|
| + version_info.reset(
|
| + new gl::GLVersionInfo(normalized_init.gl_version.c_str(), "", ""));
|
| +
|
| + if (version_info->IsAtLeastGL(3, 2) || version_info->IsAtLeastGLES(3, 0)) {
|
| + EXPECT_CALL(*gl_, BindBuffer(GL_PIXEL_UNPACK_BUFFER, 0))
|
| + .Times(1)
|
| + .RetiresOnSaturation();
|
| + }
|
| +
|
| EXPECT_TRUE(group_->Initialize(mock_decoder_.get(), init.context_type,
|
| DisallowedFeatures()));
|
|
|
|
|