| Index: gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
|
| diff --git a/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h b/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
|
| index d14f48df0130edee33869bcd9ddc2fd87415b9c1..45f0b8e94a9d9f19267e043e5eb512804819d2f5 100644
|
| --- a/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
|
| +++ b/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
|
| @@ -1283,6 +1283,50 @@ TEST_F(GLES2FormatTest, GetFramebufferAttachmentParameteriv) {
|
| CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
|
| }
|
|
|
| +TEST_F(GLES2FormatTest, GetInteger64v) {
|
| + cmds::GetInteger64v& cmd = *GetBufferAs<cmds::GetInteger64v>();
|
| + void* next_cmd =
|
| + cmd.Set(&cmd, static_cast<GLenum>(11), static_cast<uint32_t>(12),
|
| + static_cast<uint32_t>(13));
|
| + EXPECT_EQ(static_cast<uint32_t>(cmds::GetInteger64v::kCmdId),
|
| + cmd.header.command);
|
| + EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
|
| + EXPECT_EQ(static_cast<GLenum>(11), cmd.pname);
|
| + EXPECT_EQ(static_cast<uint32_t>(12), cmd.params_shm_id);
|
| + EXPECT_EQ(static_cast<uint32_t>(13), cmd.params_shm_offset);
|
| + CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
|
| +}
|
| +
|
| +TEST_F(GLES2FormatTest, GetIntegeri_v) {
|
| + cmds::GetIntegeri_v& cmd = *GetBufferAs<cmds::GetIntegeri_v>();
|
| + void* next_cmd =
|
| + cmd.Set(&cmd, static_cast<GLenum>(11), static_cast<GLuint>(12),
|
| + static_cast<uint32_t>(13), static_cast<uint32_t>(14));
|
| + EXPECT_EQ(static_cast<uint32_t>(cmds::GetIntegeri_v::kCmdId),
|
| + cmd.header.command);
|
| + EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
|
| + EXPECT_EQ(static_cast<GLenum>(11), cmd.pname);
|
| + EXPECT_EQ(static_cast<GLuint>(12), cmd.index);
|
| + EXPECT_EQ(static_cast<uint32_t>(13), cmd.data_shm_id);
|
| + EXPECT_EQ(static_cast<uint32_t>(14), cmd.data_shm_offset);
|
| + CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
|
| +}
|
| +
|
| +TEST_F(GLES2FormatTest, GetInteger64i_v) {
|
| + cmds::GetInteger64i_v& cmd = *GetBufferAs<cmds::GetInteger64i_v>();
|
| + void* next_cmd =
|
| + cmd.Set(&cmd, static_cast<GLenum>(11), static_cast<GLuint>(12),
|
| + static_cast<uint32_t>(13), static_cast<uint32_t>(14));
|
| + EXPECT_EQ(static_cast<uint32_t>(cmds::GetInteger64i_v::kCmdId),
|
| + cmd.header.command);
|
| + EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
|
| + EXPECT_EQ(static_cast<GLenum>(11), cmd.pname);
|
| + EXPECT_EQ(static_cast<GLuint>(12), cmd.index);
|
| + EXPECT_EQ(static_cast<uint32_t>(13), cmd.data_shm_id);
|
| + EXPECT_EQ(static_cast<uint32_t>(14), cmd.data_shm_offset);
|
| + CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
|
| +}
|
| +
|
| TEST_F(GLES2FormatTest, GetIntegerv) {
|
| cmds::GetIntegerv& cmd = *GetBufferAs<cmds::GetIntegerv>();
|
| void* next_cmd =
|
|
|