| 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 2e153b45b959b919f8f756b9ca95e797f7c58efc..f88a046078211d81bae4520ad2bd687e4b7d9a59 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,38 @@
|
| #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, ValidateProgramValidArgs) {
|
| + EXPECT_CALL(*gl_, ValidateProgram(kServiceProgramId));
|
| + SpecializedSetup<cmds::ValidateProgram, 0>(true);
|
| + cmds::ValidateProgram cmd;
|
| + cmd.Init(client_program_id_);
|
| + EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
|
| + EXPECT_EQ(GL_NO_ERROR, GetGLError());
|
| +}
|
| +
|
| +TEST_P(GLES2DecoderTest3, VertexAttrib1fValidArgs) {
|
| + EXPECT_CALL(*gl_, VertexAttrib1f(1, 2));
|
| + SpecializedSetup<cmds::VertexAttrib1f, 0>(true);
|
| + cmds::VertexAttrib1f cmd;
|
| + cmd.Init(1, 2);
|
| + EXPECT_EQ(error::kNoError, ExecuteCmd(cmd));
|
| + EXPECT_EQ(GL_NO_ERROR, GetGLError());
|
| +}
|
| +
|
| +TEST_P(GLES2DecoderTest3, VertexAttrib1fvImmediateValidArgs) {
|
| + cmds::VertexAttrib1fvImmediate& cmd =
|
| + *GetImmediateAs<cmds::VertexAttrib1fvImmediate>();
|
| + SpecializedSetup<cmds::VertexAttrib1fvImmediate, 0>(true);
|
| + GLfloat temp[1] = {
|
| + 0,
|
| + };
|
| + cmd.Init(1, &temp[0]);
|
| + EXPECT_CALL(*gl_, VertexAttrib1fv(1, reinterpret_cast<GLfloat*>(
|
| + ImmediateDataAddress(&cmd))));
|
| + EXPECT_EQ(error::kNoError, ExecuteImmediateCmd(cmd, sizeof(temp)));
|
| + EXPECT_EQ(GL_NO_ERROR, GetGLError());
|
| +}
|
| +
|
| TEST_P(GLES2DecoderTest3, VertexAttrib2fValidArgs) {
|
| EXPECT_CALL(*gl_, VertexAttrib2f(1, 2, 3));
|
| SpecializedSetup<cmds::VertexAttrib2f, 0>(true);
|
|
|