| Index: gpu/command_buffer/client/gles2_implementation_unittest_autogen.h
|
| ===================================================================
|
| --- gpu/command_buffer/client/gles2_implementation_unittest_autogen.h (revision 132415)
|
| +++ gpu/command_buffer/client/gles2_implementation_unittest_autogen.h (working copy)
|
| @@ -1623,6 +1623,36 @@
|
| }
|
| // TODO: Implement unit test for GetTranslatedShaderSourceANGLE
|
|
|
| +TEST_F(GLES2ImplementationTest, ProduceTextureCHROMIUM) {
|
| + struct Cmds {
|
| + ProduceTextureCHROMIUMImmediate cmd;
|
| + GLint data[32];
|
| + };
|
| +
|
| + Cmds expected;
|
| + for (int jj = 0; jj < 32; ++jj) {
|
| + expected.data[jj] = static_cast<GLint>(jj);
|
| + }
|
| + expected.cmd.Init(GL_TEXTURE_2D, &expected.data[0]);
|
| + gl_->ProduceTextureCHROMIUM(GL_TEXTURE_2D, &expected.data[0]);
|
| + EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
|
| +}
|
| +
|
| +TEST_F(GLES2ImplementationTest, ConsumeTextureCHROMIUM) {
|
| + struct Cmds {
|
| + ConsumeTextureCHROMIUMImmediate cmd;
|
| + GLint data[32];
|
| + };
|
| +
|
| + Cmds expected;
|
| + for (int jj = 0; jj < 32; ++jj) {
|
| + expected.data[jj] = static_cast<GLint>(jj);
|
| + }
|
| + expected.cmd.Init(GL_TEXTURE_2D, &expected.data[0]);
|
| + gl_->ConsumeTextureCHROMIUM(GL_TEXTURE_2D, &expected.data[0]);
|
| + EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
|
| +}
|
| +
|
| TEST_F(GLES2ImplementationTest, TexImageIOSurface2DCHROMIUM) {
|
| struct Cmds {
|
| TexImageIOSurface2DCHROMIUM cmd;
|
|
|