Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h |
index 2eb4e585f5bde59ba0f0f2d28e7a33771567fdaa..64219851568882e34533e9ac680fff1e58ed704f 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h |
@@ -12,6 +12,35 @@ |
#ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_3_AUTOGEN_H_ |
#define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_3_AUTOGEN_H_ |
+TEST_P(GLES2DecoderTest3, VertexAttribI4ivImmediateValidArgs) { |
+ cmds::VertexAttribI4ivImmediate& cmd = |
+ *GetImmediateAs<cmds::VertexAttribI4ivImmediate>(); |
+ SpecializedSetup<cmds::VertexAttribI4ivImmediate, 0>(true); |
+ GLint temp[4] = { |
+ 0, |
+ }; |
+ cmd.Init(1, &temp[0]); |
+ EXPECT_CALL(*gl_, VertexAttribI4iv(1, reinterpret_cast<GLint*>( |
+ ImmediateDataAddress(&cmd)))); |
+ decoder_->set_unsafe_es3_apis_enabled(true); |
+ EXPECT_EQ(error::kNoError, ExecuteImmediateCmd(cmd, sizeof(temp))); |
+ EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
+ decoder_->set_unsafe_es3_apis_enabled(false); |
+ EXPECT_EQ(error::kUnknownCommand, ExecuteImmediateCmd(cmd, sizeof(temp))); |
+} |
+ |
+TEST_P(GLES2DecoderTest3, VertexAttribI4uiValidArgs) { |
+ EXPECT_CALL(*gl_, VertexAttribI4ui(1, 2, 3, 4, 5)); |
+ SpecializedSetup<cmds::VertexAttribI4ui, 0>(true); |
+ cmds::VertexAttribI4ui cmd; |
+ cmd.Init(1, 2, 3, 4, 5); |
+ decoder_->set_unsafe_es3_apis_enabled(true); |
+ EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
+ EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
+ decoder_->set_unsafe_es3_apis_enabled(false); |
+ EXPECT_EQ(error::kUnknownCommand, ExecuteCmd(cmd)); |
+} |
+ |
TEST_P(GLES2DecoderTest3, VertexAttribI4uivImmediateValidArgs) { |
cmds::VertexAttribI4uivImmediate& cmd = |
*GetImmediateAs<cmds::VertexAttribI4uivImmediate>(); |
@@ -113,6 +142,8 @@ TEST_P(GLES2DecoderTest3, PopGroupMarkerEXTValidArgs) { |
// TODO(gman): GetProgramInfoCHROMIUM |
+// TODO(gman): GetUniformBlocksCHROMIUM |
+ |
// TODO(gman): GetTranslatedShaderSourceANGLE |
// TODO(gman): PostSubBufferCHROMIUM |
// TODO(gman): TexImageIOSurface2DCHROMIUM |