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 138479c476079a20e9d152ff5569489af35cd1a1..ae9b5e15aa995bb6a1f6934985ae81f7550bdf08 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; |