Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(492)

Side by Side Diff: tests/PathOpsExtendedTest.h

Issue 1140563003: clean up tests (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix linux build error Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tests/PathOpsExtendedTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 #ifndef PathOpsExtendedTest_DEFINED 7 #ifndef PathOpsExtendedTest_DEFINED
8 #define PathOpsExtendedTest_DEFINED 8 #define PathOpsExtendedTest_DEFINED
9 9
10 #include "SkBitmap.h" 10 #include "SkBitmap.h"
(...skipping 19 matching lines...) Expand all
30 extern int comparePaths(skiatest::Reporter* reporter, const char* filename, 30 extern int comparePaths(skiatest::Reporter* reporter, const char* filename,
31 const SkPath& one, const SkPath& two, SkBitmap& bitmap); 31 const SkPath& one, const SkPath& two, SkBitmap& bitmap);
32 extern bool drawAsciiPaths(const SkPath& one, const SkPath& two, bool drawPaths) ; 32 extern bool drawAsciiPaths(const SkPath& one, const SkPath& two, bool drawPaths) ;
33 extern void showOp(const SkPathOp op); 33 extern void showOp(const SkPathOp op);
34 extern bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPa th& b, 34 extern bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPa th& b,
35 const SkPathOp , const char* testName); 35 const SkPathOp , const char* testName);
36 extern bool testPathOpCheck(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, 36 extern bool testPathOpCheck(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
37 const SkPathOp , const char* testName, bool checkFai l); 37 const SkPathOp , const char* testName, bool checkFai l);
38 extern bool testPathOpFailCheck(skiatest::Reporter* reporter, const SkPath& a, c onst SkPath& b, 38 extern bool testPathOpFailCheck(skiatest::Reporter* reporter, const SkPath& a, c onst SkPath& b,
39 const SkPathOp , const char* testName); 39 const SkPathOp , const char* testName);
40 extern bool testPathOpFlaky(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
41 const SkPathOp , const char* testName);
42 extern bool testPathFailOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, 40 extern bool testPathFailOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
43 const SkPathOp , const char* testName); 41 const SkPathOp , const char* testName);
44 extern bool testThreadedPathOp(skiatest::Reporter* reporter, const SkPath& a, co nst SkPath& b,
45 const SkPathOp , const char* testName);
46 extern bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadSt ate& state, 42 extern bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadSt ate& state,
47 const char* pathStr); 43 const char* pathStr);
48 extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename); 44 extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename);
49 extern bool testSimplifyCheck(skiatest::Reporter* reporter, const SkPath& path, 45 extern bool testSimplifyCheck(skiatest::Reporter* reporter, const SkPath& path,
50 const char* filename, bool checkFail); 46 const char* filename, bool checkFail);
51 47
52 void initializeTests(skiatest::Reporter* reporter, const char* testName); 48 void initializeTests(skiatest::Reporter* reporter, const char* testName);
53 void outputProgress(char* ramStr, const char* pathStr, SkPath::FillType ); 49 void outputProgress(char* ramStr, const char* pathStr, SkPath::FillType );
54 void outputProgress(char* ramStr, const char* pathStr, SkPathOp op); 50 void outputProgress(char* ramStr, const char* pathStr, SkPathOp op);
55 51
56 void RunTestSet(skiatest::Reporter* reporter, TestDesc tests[], size_t count, 52 void RunTestSet(skiatest::Reporter* reporter, TestDesc tests[], size_t count,
57 void (*firstTest)(skiatest::Reporter* , const char* filename), 53 void (*firstTest)(skiatest::Reporter* , const char* filename),
58 void (*skipTest)(skiatest::Reporter* , const char* filename), 54 void (*skipTest)(skiatest::Reporter* , const char* filename),
59 void (*stopTest)(skiatest::Reporter* , const char* filename), bo ol reverse); 55 void (*stopTest)(skiatest::Reporter* , const char* filename), bo ol reverse);
60 void ShowTestArray(const char* testName); 56 void ShowTestArray(const char* testName);
61 void ShowTestName(PathOpsThreadState* data, int a, int b, int c, int d); 57 void ShowTestName(PathOpsThreadState* data, int a, int b, int c, int d);
62 void ShowFunctionHeader(const char* name); 58 void ShowFunctionHeader(const char* name);
63 void ShowPath(const SkPath& path, const char* pathName); 59 void ShowPath(const SkPath& path, const char* pathName);
64 void ShowOp(SkPathOp op, const char* pathOne, const char* pathTwo); 60 void ShowOp(SkPathOp op, const char* pathOne, const char* pathTwo);
65 61
66 #endif 62 #endif
OLDNEW
« no previous file with comments | « no previous file | tests/PathOpsExtendedTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698