| Index: gpu/command_buffer/client/gles2_implementation_unittest_autogen.h
|
| diff --git a/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h b/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h
|
| index b16353a30f57fd95732302c0fe196d310bba4a35..d0279262cbf3b3a66d32bb2a2e6b487bdc08f7f0 100644
|
| --- a/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h
|
| +++ b/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h
|
| @@ -1122,6 +1122,44 @@ TEST_F(GLES2ImplementationTest, GetVertexAttribiv) {
|
| EXPECT_EQ(static_cast<ResultType>(1), result);
|
| }
|
|
|
| +TEST_F(GLES2ImplementationTest, GetVertexAttribIiv) {
|
| + struct Cmds {
|
| + cmds::GetVertexAttribIiv cmd;
|
| + };
|
| + typedef cmds::GetVertexAttribIiv::Result::Type ResultType;
|
| + ResultType result = 0;
|
| + Cmds expected;
|
| + ExpectedMemoryInfo result1 =
|
| + GetExpectedResultMemory(sizeof(uint32_t) + sizeof(ResultType));
|
| + expected.cmd.Init(123, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, result1.id,
|
| + result1.offset);
|
| + EXPECT_CALL(*command_buffer(), OnFlush())
|
| + .WillOnce(SetMemory(result1.ptr, SizedResultHelper<ResultType>(1)))
|
| + .RetiresOnSaturation();
|
| + gl_->GetVertexAttribIiv(123, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, &result);
|
| + EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
|
| + EXPECT_EQ(static_cast<ResultType>(1), result);
|
| +}
|
| +
|
| +TEST_F(GLES2ImplementationTest, GetVertexAttribIuiv) {
|
| + struct Cmds {
|
| + cmds::GetVertexAttribIuiv cmd;
|
| + };
|
| + typedef cmds::GetVertexAttribIuiv::Result::Type ResultType;
|
| + ResultType result = 0;
|
| + Cmds expected;
|
| + ExpectedMemoryInfo result1 =
|
| + GetExpectedResultMemory(sizeof(uint32_t) + sizeof(ResultType));
|
| + expected.cmd.Init(123, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, result1.id,
|
| + result1.offset);
|
| + EXPECT_CALL(*command_buffer(), OnFlush())
|
| + .WillOnce(SetMemory(result1.ptr, SizedResultHelper<ResultType>(1)))
|
| + .RetiresOnSaturation();
|
| + gl_->GetVertexAttribIuiv(123, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, &result);
|
| + EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
|
| + EXPECT_EQ(static_cast<ResultType>(1), result);
|
| +}
|
| +
|
| TEST_F(GLES2ImplementationTest, Hint) {
|
| struct Cmds {
|
| cmds::Hint cmd;
|
|
|