Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions_autogen.h |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions_autogen.h b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions_autogen.h |
index a81be2f8d34729445888b6ba01131bf5360e9437..2397998baa6688ad3ce2a2f5becb44bcfe6eb53e 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions_autogen.h |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions_autogen.h |
@@ -44,4 +44,54 @@ TEST_P(GLES2DecoderTestWithCHROMIUMPathRendering, |
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
} |
+// TODO(gman): GenPathsCHROMIUM |
+ |
+// TODO(gman): DeletePathsCHROMIUM |
+ |
+TEST_P(GLES2DecoderTestWithCHROMIUMPathRendering, IsPathCHROMIUMValidArgs) { |
+ EXPECT_CALL(*gl_, IsPathNV(kServicePathId)); |
+ SpecializedSetup<cmds::IsPathCHROMIUM, 0>(true); |
+ cmds::IsPathCHROMIUM cmd; |
+ cmd.Init(client_path_id_, shared_memory_id_, shared_memory_offset_); |
+ EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
+ EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
+} |
+ |
+TEST_P(GLES2DecoderTestWithCHROMIUMPathRendering, |
+ IsPathCHROMIUMInvalidArgsBadSharedMemoryId) { |
+ EXPECT_CALL(*gl_, IsPathNV(kServicePathId)).Times(0); |
+ SpecializedSetup<cmds::IsPathCHROMIUM, 0>(false); |
+ cmds::IsPathCHROMIUM cmd; |
+ cmd.Init(client_path_id_, kInvalidSharedMemoryId, shared_memory_offset_); |
+ EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); |
+ cmd.Init(client_path_id_, shared_memory_id_, kInvalidSharedMemoryOffset); |
+ EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); |
+} |
+// TODO(gman): PathCommandsCHROMIUM |
+ |
+// TODO(gman): PathParameterfCHROMIUM |
+ |
+// TODO(gman): PathParameteriCHROMIUM |
+ |
+TEST_P(GLES2DecoderTestWithCHROMIUMPathRendering, |
+ PathStencilFuncCHROMIUMValidArgs) { |
+ EXPECT_CALL(*gl_, PathStencilFuncNV(GL_NEVER, 2, 3)); |
+ SpecializedSetup<cmds::PathStencilFuncCHROMIUM, 0>(true); |
+ cmds::PathStencilFuncCHROMIUM cmd; |
+ cmd.Init(GL_NEVER, 2, 3); |
+ EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
+ EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
+} |
+// TODO(gman): StencilFillPathCHROMIUM |
+ |
+// TODO(gman): StencilStrokePathCHROMIUM |
+ |
+// TODO(gman): CoverFillPathCHROMIUM |
+ |
+// TODO(gman): CoverStrokePathCHROMIUM |
+ |
+// TODO(gman): StencilThenCoverFillPathCHROMIUM |
+ |
+// TODO(gman): StencilThenCoverStrokePathCHROMIUM |
+ |
#endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_EXTENSIONS_AUTOGEN_H_ |