aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@skia.org>2018-03-19 09:42:00 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-19 14:06:25 +0000
commit0949beeaf440bc0022703951741f8a6abf379d88 (patch)
tree7464e828b4e1b56b8544773c199997cdeff41785 /tests
parent8d2ba44c9cba790cfd8ace80de9e15972bccbe5d (diff)
fix op fuzz
fixes the current four fuzzer fails by rewriting asserts as function exits. Passes all extended pathops testing. To run the extended tests: ./out/debug/pathops_unittest -V -x ./out/release/pathops_unittest -V -x R=kjlubick@google.com Docs-Preview: https://skia.org/?cl=114962 Bug: skia: Change-Id: I05bd368a87b38b1121403cf93b21caf76c2e7d7e Reviewed-on: https://skia-review.googlesource.com/114962 Commit-Queue: Cary Clark <caryclark@skia.org> Reviewed-by: Kevin Lubick <kjlubick@google.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/PathOpsTestCommon.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/PathOpsTestCommon.cpp b/tests/PathOpsTestCommon.cpp
index 8cc8fe879d..d7db579d9c 100644
--- a/tests/PathOpsTestCommon.cpp
+++ b/tests/PathOpsTestCommon.cpp
@@ -10,6 +10,7 @@
#include "SkPathOpsCubic.h"
#include "SkPathOpsLine.h"
#include "SkPathOpsQuad.h"
+#include "SkPathOpsTSect.h"
#include "SkReduceOrder.h"
#include "SkTSort.h"
@@ -248,10 +249,6 @@ void CubicPathToSimple(const SkPath& cubicPath, SkPath* simplePath) {
}
}
-static bool SkDoubleIsNaN(double x) {
- return x != x;
-}
-
bool ValidBounds(const SkPathOpsBounds& bounds) {
if (SkScalarIsNaN(bounds.fLeft)) {
return false;