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 7b7845b58ada878c0b265b2924a97c70e5692e10..e8c01455953eabfc6651df1a8a4384f19320e0b3 100644 |
--- a/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h |
+++ b/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h |
@@ -3143,6 +3143,41 @@ TEST_F(GLES2FormatTest, BindUniformLocationCHROMIUMBucket) { |
CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd)); |
} |
+TEST_F(GLES2FormatTest, SubscribeUniformCHROMIUM) { |
+ cmds::SubscribeUniformCHROMIUM& cmd = |
+ *GetBufferAs<cmds::SubscribeUniformCHROMIUM>(); |
+ void* next_cmd = |
+ cmd.Set(&cmd, static_cast<GLint>(11), static_cast<GLenum>(12)); |
+ EXPECT_EQ(static_cast<uint32_t>(cmds::SubscribeUniformCHROMIUM::kCmdId), |
+ cmd.header.command); |
+ EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); |
+ EXPECT_EQ(static_cast<GLint>(11), cmd.location); |
+ EXPECT_EQ(static_cast<GLenum>(12), cmd.target); |
+ CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd)); |
+} |
+ |
+TEST_F(GLES2FormatTest, UnsubscribeUniformCHROMIUM) { |
+ cmds::UnsubscribeUniformCHROMIUM& cmd = |
+ *GetBufferAs<cmds::UnsubscribeUniformCHROMIUM>(); |
+ void* next_cmd = cmd.Set(&cmd, static_cast<GLint>(11)); |
+ EXPECT_EQ(static_cast<uint32_t>(cmds::UnsubscribeUniformCHROMIUM::kCmdId), |
+ cmd.header.command); |
+ EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); |
+ EXPECT_EQ(static_cast<GLint>(11), cmd.location); |
+ CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd)); |
+} |
+ |
+TEST_F(GLES2FormatTest, PopulateSubscribedUniformsCHROMIUM) { |
+ cmds::PopulateSubscribedUniformsCHROMIUM& cmd = |
+ *GetBufferAs<cmds::PopulateSubscribedUniformsCHROMIUM>(); |
+ void* next_cmd = cmd.Set(&cmd); |
+ EXPECT_EQ( |
+ static_cast<uint32_t>(cmds::PopulateSubscribedUniformsCHROMIUM::kCmdId), |
+ cmd.header.command); |
+ EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); |
+ CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd)); |
+} |
+ |
TEST_F(GLES2FormatTest, BindTexImage2DCHROMIUM) { |
cmds::BindTexImage2DCHROMIUM& cmd = |
*GetBufferAs<cmds::BindTexImage2DCHROMIUM>(); |