diff options
author | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-09 07:01:27 +0000 |
---|---|---|
committer | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-09 07:01:27 +0000 |
commit | 3284017a60ea4fc3dc5b95838ba0c301ee1e4e8d (patch) | |
tree | 0318a5fc58b43774f820f8f2beddbe9870ec7a9a /tests | |
parent | 8e029e6e59024b80e8f71924369a540699754de3 (diff) |
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@8568 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ErrorTest.cpp | 8 | ||||
-rw-r--r-- | tests/PathOpsExtendedTest.cpp | 4 | ||||
-rw-r--r-- | tests/PathOpsOpRectThreadedTest.cpp | 1 | ||||
-rw-r--r-- | tests/PathOpsQuadIntersectionTest.cpp | 1 | ||||
-rw-r--r-- | tests/PathOpsTestCommon.cpp | 1 |
5 files changed, 6 insertions, 9 deletions
diff --git a/tests/ErrorTest.cpp b/tests/ErrorTest.cpp index c3b11533c1..761f8bf66f 100644 --- a/tests/ErrorTest.cpp +++ b/tests/ErrorTest.cpp @@ -17,7 +17,7 @@ SkDebugf("Last error string: %s\n", SkGetLastErrorString()); \ SkClearLastError(); \ } - + static void cb(SkError err, void *context) { int *context_ptr = static_cast<int *>(context); SkDebugf("CB (0x%x): %s\n", *context_ptr, SkGetLastErrorString()); @@ -25,16 +25,16 @@ static void cb(SkError err, void *context) { static void ErrorTest(skiatest::Reporter* reporter) { SkError err; - + CHECK(kNoError_SkError); - + SkRect r = SkRect::MakeWH(50, 100); CHECK(kNoError_SkError); SkPath path; path.addRect(r); CHECK(kNoError_SkError); - + path.addRoundRect(r, 10, 10); CHECK(kNoError_SkError); diff --git a/tests/PathOpsExtendedTest.cpp b/tests/PathOpsExtendedTest.cpp index f1748cdb4c..9415d5f6a7 100644 --- a/tests/PathOpsExtendedTest.cpp +++ b/tests/PathOpsExtendedTest.cpp @@ -162,7 +162,7 @@ static void showPath(const SkPath& path, const char* str, const SkMatrix& scale) SkPath scaled; SkMatrix inverse; bool success = scale.invert(&inverse); - if (!success) { + if (!success) { SkASSERT(0); } path.transform(inverse, &scaled); @@ -330,7 +330,7 @@ static void showPathOpPath(const SkPath& one, const SkPath& two, const SkPath& a static int comparePaths(skiatest::Reporter* reporter, const SkPath& one, const SkPath& scaledOne, const SkPath& two, const SkPath& scaledTwo, SkBitmap& bitmap, - const SkPath& a, const SkPath& b, const SkPathOp shapeOp, + const SkPath& a, const SkPath& b, const SkPathOp shapeOp, const SkMatrix& scale) { int errors2x2; int errors = pathsDrawTheSame(bitmap, scaledOne, scaledTwo, errors2x2); diff --git a/tests/PathOpsOpRectThreadedTest.cpp b/tests/PathOpsOpRectThreadedTest.cpp index a181485df2..2f89805146 100644 --- a/tests/PathOpsOpRectThreadedTest.cpp +++ b/tests/PathOpsOpRectThreadedTest.cpp @@ -99,4 +99,3 @@ finish: #include "TestClassDef.h" DEFINE_TESTCLASS("PathOpsRectsThreaded", OpRectsThreadedTestClass, \ TestPathOpsRectsThreaded) - diff --git a/tests/PathOpsQuadIntersectionTest.cpp b/tests/PathOpsQuadIntersectionTest.cpp index 437796d2fc..2ee70ec735 100644 --- a/tests/PathOpsQuadIntersectionTest.cpp +++ b/tests/PathOpsQuadIntersectionTest.cpp @@ -465,4 +465,3 @@ static void TestQuadIntersection(skiatest::Reporter* reporter) { #include "TestClassDef.h" DEFINE_TESTCLASS("PathOpsQuadIntersection", QuadIntersectionTestClass, TestQuadIntersection) - diff --git a/tests/PathOpsTestCommon.cpp b/tests/PathOpsTestCommon.cpp index cbea715b66..86f6859c6b 100644 --- a/tests/PathOpsTestCommon.cpp +++ b/tests/PathOpsTestCommon.cpp @@ -24,4 +24,3 @@ void CubicToQuads(const SkDCubic& cubic, double precision, SkTDArray<SkDQuad>& q tStart = tEnd; } } - |