From f1d415188ffb4c34e2886c2cfceb363a148333f1 Mon Sep 17 00:00:00 2001 From: caryclark Date: Tue, 9 Feb 2016 10:30:22 -0800 Subject: 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 --- tools/random_parse_path.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tools/random_parse_path.h (limited to 'tools/random_parse_path.h') 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 -- cgit v1.2.3