aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/random_parse_path.h
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2016-02-09 10:30:22 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-09 10:30:22 -0800
commitf1d415188ffb4c34e2886c2cfceb363a148333f1 (patch)
tree07cbfee906d827a1f4731d68812c45d46ea78c29 /tools/random_parse_path.h
parent719c48050127b2a18793bbcfa0dc49c2df5f080a (diff)
Add unit test to feed valid SVG sequences to make sure that
path strings can be parsed without returning an error. Draw the output through Skia and SVG to make sure they are parsed correctly. R=fmalita@chromium.org BUG=skia:4549 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1675053002 Review URL: https://codereview.chromium.org/1675053002
Diffstat (limited to 'tools/random_parse_path.h')
-rw-r--r--tools/random_parse_path.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/random_parse_path.h b/tools/random_parse_path.h
new file mode 100644
index 0000000000..4dfa5015cc
--- /dev/null
+++ b/tools/random_parse_path.h
@@ -0,0 +1,17 @@
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef random_parse_path_DEFINED
+#define random_parse_path_DEFINED
+
+#include "SkString.h"
+
+class SkRandom;
+
+SkString MakeRandomParsePathPiece(SkRandom* rand);
+
+#endif