Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h |
index c10a61bdf510a5b801febf20c43de802f0f35199..198efa1867ac41fc1a6fccc0efce5ca7fef40265 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h |
@@ -10,6 +10,54 @@ |
#ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ |
#define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ |
+// TODO(gman): GetUniformLocation |
+ |
+// TODO(gman): GetUniformLocationImmediate |
+ |
+// TODO(gman): GetUniformLocationBucket |
+ |
+ |
+TEST_F(GLES2DecoderTest2, GetVertexAttribfvValidArgs) { |
+ SpecializedSetup<cmds::GetVertexAttribfv, 0>(true); |
+ typedef cmds::GetVertexAttribfv::Result Result; |
+ Result* result = static_cast<Result*>(shared_memory_address_); |
+ result->size = 0; |
+ cmds::GetVertexAttribfv cmd; |
+ cmd.Init( |
+ 1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, shared_memory_id_, |
+ shared_memory_offset_); |
+ EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
+ EXPECT_EQ(decoder_->GetGLES2Util()->GLGetNumValuesReturned( |
+ GL_VERTEX_ATTRIB_ARRAY_NORMALIZED), |
+ result->GetNumResults()); |
+ EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
+} |
+ |
+TEST_F(GLES2DecoderTest2, GetVertexAttribfvInvalidArgs2_0) { |
+ EXPECT_CALL(*gl_, GetVertexAttribfv(_, _, _)).Times(0); |
+ SpecializedSetup<cmds::GetVertexAttribfv, 0>(false); |
+ cmds::GetVertexAttribfv::Result* result = |
+ static_cast<cmds::GetVertexAttribfv::Result*>(shared_memory_address_); |
+ result->size = 0; |
+ cmds::GetVertexAttribfv cmd; |
+ cmd.Init(1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, kInvalidSharedMemoryId, 0); |
+ EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); |
+ EXPECT_EQ(0u, result->size); |
+} |
+ |
+TEST_F(GLES2DecoderTest2, GetVertexAttribfvInvalidArgs2_1) { |
+ EXPECT_CALL(*gl_, GetVertexAttribfv(_, _, _)).Times(0); |
+ SpecializedSetup<cmds::GetVertexAttribfv, 0>(false); |
+ cmds::GetVertexAttribfv::Result* result = |
+ static_cast<cmds::GetVertexAttribfv::Result*>(shared_memory_address_); |
+ result->size = 0; |
+ cmds::GetVertexAttribfv cmd; |
+ cmd.Init( |
+ 1, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, shared_memory_id_, |
+ kInvalidSharedMemoryOffset); |
+ EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); |
+ EXPECT_EQ(0u, result->size); |
+} |
TEST_F(GLES2DecoderTest2, GetVertexAttribivValidArgs) { |
SpecializedSetup<cmds::GetVertexAttribiv, 0>(true); |
@@ -1750,18 +1798,5 @@ TEST_F(GLES2DecoderTest2, ViewportInvalidArgs3_0) { |
// TODO(gman): EndQueryEXT |
-// TODO(gman): InsertEventMarkerEXT |
- |
-// TODO(gman): PushGroupMarkerEXT |
- |
- |
-TEST_F(GLES2DecoderTest2, PopGroupMarkerEXTValidArgs) { |
- SpecializedSetup<cmds::PopGroupMarkerEXT, 0>(true); |
- cmds::PopGroupMarkerEXT cmd; |
- cmd.Init(); |
- EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
- EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
-} |
-// TODO(gman): GenVertexArraysOES |
#endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ |