Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h |
index 447914cb216632c3723c48db0a818a2d620322fb..2e602190ef6da869888f3d605b15608599bfd61c 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h |
@@ -12,8 +12,6 @@ |
#ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ |
#define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ |
-// TODO(gman): GetString |
- |
TEST_P(GLES2DecoderTest2, GetTexParameterfvValidArgs) { |
EXPECT_CALL(*gl_, GetError()) |
.WillOnce(Return(GL_NO_ERROR)) |
@@ -1583,4 +1581,18 @@ TEST_P(GLES2DecoderTest2, VertexAttrib2fValidArgs) { |
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
} |
+ |
+TEST_P(GLES2DecoderTest2, VertexAttrib2fvImmediateValidArgs) { |
+ cmds::VertexAttrib2fvImmediate& cmd = |
+ *GetImmediateAs<cmds::VertexAttrib2fvImmediate>(); |
+ SpecializedSetup<cmds::VertexAttrib2fvImmediate, 0>(true); |
+ GLfloat temp[2] = { |
+ 0, |
+ }; |
+ cmd.Init(1, &temp[0]); |
+ EXPECT_CALL(*gl_, VertexAttrib2fv(1, reinterpret_cast<GLfloat*>( |
+ ImmediateDataAddress(&cmd)))); |
+ EXPECT_EQ(error::kNoError, ExecuteImmediateCmd(cmd, sizeof(temp))); |
+ EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
+} |
#endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ |