Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
PathOpsExtendedTest.h
Go to the documentation of this file.
1/*
2 * Copyright 2012 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7#ifndef PathOpsExtendedTest_DEFINED
8#define PathOpsExtendedTest_DEFINED
9
12
13#include <cstddef>
14
15class SkPath;
16namespace skiatest { class Reporter; }
18
19struct TestDesc {
20 void (*fun)(skiatest::Reporter*, const char* filename);
21 const char* str;
22};
23
24//extern int comparePaths(const SkPath& one, const SkPath& two);
25extern int comparePaths(skiatest::Reporter* reporter, const char* filename,
26 const SkPath& one, const SkPath& two, SkBitmap& bitmap);
27
28inline int comparePaths(skiatest::Reporter* reporter, const char* filename,
29 const SkPath& one, const SkPath& two) {
31 return comparePaths(reporter, filename, one, two, bitmap);
32}
33
34extern bool drawAsciiPaths(const SkPath& one, const SkPath& two, bool drawPaths);
35extern void markTestFlakyForPathKit();
36extern void showOp(const SkPathOp op);
37extern bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
38 const SkPathOp , const char* testName);
39extern bool testPathOpCheck(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
40 const SkPathOp , const char* testName, bool checkFail);
41extern bool testPathOpFail(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
42 const SkPathOp, const char* testName);
43extern bool testPathOpFuzz(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
44 const SkPathOp , const char* testName);
45extern bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadState& state,
46 const char* pathStr);
47extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename);
48extern bool testSimplifyCheck(skiatest::Reporter* reporter, const SkPath& path,
49 const char* filename, bool checkFail);
50extern bool testSimplifyFail(skiatest::Reporter* reporter, const SkPath& path,
51 const char* filename);
52extern bool testSimplifyFuzz(skiatest::Reporter* reporter, const SkPath& path,
53 const char* filename);
54
55void initializeTests(skiatest::Reporter* reporter, const char* testName);
56
58 void (*firstTest)(skiatest::Reporter* , const char* filename),
59 void (*skipTest)(skiatest::Reporter* , const char* filename),
60 void (*stopTest)(skiatest::Reporter* , const char* filename), bool reverse);
61void ShowFunctionHeader(const char* name);
62void ShowPath(const SkPath& path, const char* pathName);
63void ShowOp(SkPathOp op, const char* pathOne, const char* pathTwo);
64
65#endif
static BlurTest tests[]
Definition BlurTest.cpp:84
reporter
int count
static void(* stopTest)(skiatest::Reporter *, const char *filename)
static void(* firstTest)(skiatest::Reporter *, const char *filename)
static void(* skipTest)(skiatest::Reporter *, const char *filename)
bool testSimplifyCheck(skiatest::Reporter *reporter, const SkPath &path, const char *filename, bool checkFail)
bool testPathOp(skiatest::Reporter *reporter, const SkPath &a, const SkPath &b, const SkPathOp, const char *testName)
void initializeTests(skiatest::Reporter *reporter, const char *testName)
bool testPathOpCheck(skiatest::Reporter *reporter, const SkPath &a, const SkPath &b, const SkPathOp, const char *testName, bool checkFail)
void ShowPath(const SkPath &path, const char *pathName)
bool testSimplifyFuzz(skiatest::Reporter *reporter, const SkPath &path, const char *filename)
void markTestFlakyForPathKit()
bool testSimplify(SkPath &path, bool useXor, SkPath &out, PathOpsThreadState &state, const char *pathStr)
void ShowFunctionHeader(const char *name)
void RunTestSet(skiatest::Reporter *reporter, TestDesc tests[], size_t count, void(*firstTest)(skiatest::Reporter *, const char *filename), void(*skipTest)(skiatest::Reporter *, const char *filename), void(*stopTest)(skiatest::Reporter *, const char *filename), bool reverse)
int comparePaths(skiatest::Reporter *reporter, const char *filename, const SkPath &one, const SkPath &two, SkBitmap &bitmap)
bool testPathOpFail(skiatest::Reporter *reporter, const SkPath &a, const SkPath &b, const SkPathOp, const char *testName)
void ShowOp(SkPathOp op, const char *pathOne, const char *pathTwo)
void showOp(const SkPathOp op)
bool drawAsciiPaths(const SkPath &one, const SkPath &two, bool drawPaths)
bool testPathOpFuzz(skiatest::Reporter *reporter, const SkPath &a, const SkPath &b, const SkPathOp, const char *testName)
bool testSimplifyFail(skiatest::Reporter *reporter, const SkPath &path, const char *filename)
SkPathOp
Definition SkPathOps.h:22
static bool b
struct MyStruct a[10]
AtkStateType state
const char * name
Definition fuchsia.cc:50
const char * str
void(* fun)(skiatest::Reporter *, const char *filename)