Index: gpu/command_buffer/client/gles2_implementation_unittest.cc |
diff --git a/gpu/command_buffer/client/gles2_implementation_unittest.cc b/gpu/command_buffer/client/gles2_implementation_unittest.cc |
index e58907c8b27e4a0600780db19b00d204fcfe7213..b14859b09fb08226bc4f29fdfd7a131b457ad739 100644 |
--- a/gpu/command_buffer/client/gles2_implementation_unittest.cc |
+++ b/gpu/command_buffer/client/gles2_implementation_unittest.cc |
@@ -366,6 +366,8 @@ class GLES2ImplementationTest : public testing::Test { |
helper_.reset(new GLES2CmdHelper(command_buffer())); |
helper_->Initialize(kCommandBufferSizeBytes); |
+ gpu_control_.reset(new StrictMock<MockClientGpuControl>()); |
+ |
GLES2Implementation::GLStaticState state; |
GLES2Implementation::GLStaticState::IntState& int_state = state.int_state; |
int_state.max_combined_texture_image_units = kMaxCombinedTextureImageUnits; |
@@ -401,7 +403,7 @@ class GLES2ImplementationTest : public testing::Test { |
NULL, |
transfer_buffer_.get(), |
bind_generates_resource, |
- NULL)); |
+ gpu_control_.get())); |
ASSERT_TRUE(gl_->Initialize( |
kTransferBufferSize, |
kTransferBufferSize, |
@@ -473,6 +475,7 @@ class GLES2ImplementationTest : public testing::Test { |
Sequence sequence_; |
scoped_ptr<MockClientCommandBuffer> command_buffer_; |
+ scoped_ptr<MockClientGpuControl> gpu_control_; |
scoped_ptr<GLES2CmdHelper> helper_; |
scoped_ptr<MockTransferBuffer> transfer_buffer_; |
scoped_ptr<GLES2Implementation> gl_; |
@@ -2474,6 +2477,7 @@ TEST_F(GLES2ImplementationTest, GetString) { |
const char* expected_str = |
"foobar " |
"GL_CHROMIUM_flipy " |
+ "GL_CHROMIUM_map_image " |
"GL_CHROMIUM_map_sub " |
"GL_CHROMIUM_shallow_flush " |
"GL_EXT_unpack_subimage"; |