Index: gpu/command_buffer/common/gles2_cmd_format_test_autogen.h |
=================================================================== |
--- gpu/command_buffer/common/gles2_cmd_format_test_autogen.h (revision 68245) |
+++ gpu/command_buffer/common/gles2_cmd_format_test_autogen.h (working copy) |
@@ -3480,5 +3480,31 @@ |
EXPECT_EQ(static_cast<GLuint>(12), cmd.height); |
} |
+TEST(GLES2FormatTest, GetRequestableExtensionsCHROMIUM) { |
+ GetRequestableExtensionsCHROMIUM cmd = { { 0 } }; |
+ void* next_cmd = cmd.Set( |
+ &cmd, |
+ static_cast<uint32>(11)); |
+ EXPECT_EQ(static_cast<uint32>(GetRequestableExtensionsCHROMIUM::kCmdId), |
+ cmd.header.command); |
+ EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); |
+ EXPECT_EQ(static_cast<char*>(next_cmd), |
+ reinterpret_cast<char*>(&cmd) + sizeof(cmd)); |
+ EXPECT_EQ(static_cast<uint32>(11), cmd.bucket_id); |
+} |
+ |
+TEST(GLES2FormatTest, RequestExtensionCHROMIUM) { |
+ RequestExtensionCHROMIUM cmd = { { 0 } }; |
+ void* next_cmd = cmd.Set( |
+ &cmd, |
+ static_cast<uint32>(11)); |
+ EXPECT_EQ(static_cast<uint32>(RequestExtensionCHROMIUM::kCmdId), |
+ cmd.header.command); |
+ EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); |
+ EXPECT_EQ(static_cast<char*>(next_cmd), |
+ reinterpret_cast<char*>(&cmd) + sizeof(cmd)); |
+ EXPECT_EQ(static_cast<uint32>(11), cmd.bucket_id); |
+} |
+ |
#endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ |