Index: gpu/command_buffer/client/gles2_implementation_unittest_autogen.h |
diff --git a/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h b/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h |
index a9d07baab886768a86d4436c788a887b8a133e20..571e457b56d1e2ce184dc852ad63d89891ca2b1a 100644 |
--- a/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h |
+++ b/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h |
@@ -1869,4 +1869,99 @@ TEST_F(GLES2ImplementationTest, MatrixLoadIdentityCHROMIUM) { |
gl_->MatrixLoadIdentityCHROMIUM(GL_PROJECTION_CHROMIUM); |
EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
} |
+// TODO: Implement unit test for GenPathsCHROMIUM |
+ |
+TEST_F(GLES2ImplementationTest, DeletePathsCHROMIUM) { |
+ struct Cmds { |
+ cmds::DeletePathsCHROMIUM cmd; |
+ }; |
+ Cmds expected; |
+ expected.cmd.Init(1, 2); |
+ |
+ gl_->DeletePathsCHROMIUM(1, 2); |
+ EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
+} |
+// TODO: Implement unit test for PathCommandsCHROMIUM |
+ |
+TEST_F(GLES2ImplementationTest, PathParameterfCHROMIUM) { |
+ struct Cmds { |
+ cmds::PathParameterfCHROMIUM cmd; |
+ }; |
+ Cmds expected; |
+ expected.cmd.Init(1, GL_PATH_STROKE_WIDTH_CHROMIUM, 3); |
+ |
+ gl_->PathParameterfCHROMIUM(1, GL_PATH_STROKE_WIDTH_CHROMIUM, 3); |
+ EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
+} |
+ |
+TEST_F(GLES2ImplementationTest, PathParameteriCHROMIUM) { |
+ struct Cmds { |
+ cmds::PathParameteriCHROMIUM cmd; |
+ }; |
+ Cmds expected; |
+ expected.cmd.Init(1, GL_PATH_STROKE_WIDTH_CHROMIUM, 3); |
+ |
+ gl_->PathParameteriCHROMIUM(1, GL_PATH_STROKE_WIDTH_CHROMIUM, 3); |
+ EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
+} |
+ |
+TEST_F(GLES2ImplementationTest, PathStencilFuncCHROMIUM) { |
+ struct Cmds { |
+ cmds::PathStencilFuncCHROMIUM cmd; |
+ }; |
+ Cmds expected; |
+ expected.cmd.Init(GL_NEVER, 2, 3); |
+ |
+ gl_->PathStencilFuncCHROMIUM(GL_NEVER, 2, 3); |
+ EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
+} |
+ |
+TEST_F(GLES2ImplementationTest, StencilFillPathCHROMIUM) { |
+ struct Cmds { |
+ cmds::StencilFillPathCHROMIUM cmd; |
+ }; |
+ Cmds expected; |
+ expected.cmd.Init(1, GL_INVERT, 3); |
+ |
+ gl_->StencilFillPathCHROMIUM(1, GL_INVERT, 3); |
+ EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
+} |
+// TODO: Implement unit test for StencilFillPathInstancedCHROMIUM |
+ |
+TEST_F(GLES2ImplementationTest, StencilStrokePathCHROMIUM) { |
+ struct Cmds { |
+ cmds::StencilStrokePathCHROMIUM cmd; |
+ }; |
+ Cmds expected; |
+ expected.cmd.Init(1, 2, 3); |
+ |
+ gl_->StencilStrokePathCHROMIUM(1, 2, 3); |
+ EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
+} |
+// TODO: Implement unit test for StencilStrokePathInstancedCHROMIUM |
+// TODO: Implement unit test for PathTexGenCHROMIUM |
+ |
+TEST_F(GLES2ImplementationTest, CoverFillPathCHROMIUM) { |
+ struct Cmds { |
+ cmds::CoverFillPathCHROMIUM cmd; |
+ }; |
+ Cmds expected; |
+ expected.cmd.Init(1, GL_BOUNDING_BOX_CHROMIUM); |
+ |
+ gl_->CoverFillPathCHROMIUM(1, GL_BOUNDING_BOX_CHROMIUM); |
+ EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
+} |
+// TODO: Implement unit test for CoverFillPathInstancedCHROMIUM |
+ |
+TEST_F(GLES2ImplementationTest, CoverStrokePathCHROMIUM) { |
+ struct Cmds { |
+ cmds::CoverStrokePathCHROMIUM cmd; |
+ }; |
+ Cmds expected; |
+ expected.cmd.Init(1, GL_BOUNDING_BOX_CHROMIUM); |
+ |
+ gl_->CoverStrokePathCHROMIUM(1, GL_BOUNDING_BOX_CHROMIUM); |
+ EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
+} |
+// TODO: Implement unit test for CoverStrokePathInstancedCHROMIUM |
#endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |