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..0a48be99562d22c43589bacb37d3d73930c78bab 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,19 @@ 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<GLenum>(11), static_cast<GLuint>(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<GLenum>(11), cmd.target); |
+ EXPECT_EQ(static_cast<GLuint>(12), cmd.bucket_id); |
+ CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd)); |
+} |
+ |
TEST_F(GLES2FormatTest, BindTexImage2DCHROMIUM) { |
cmds::BindTexImage2DCHROMIUM& cmd = |
*GetBufferAs<cmds::BindTexImage2DCHROMIUM>(); |