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

Unified Diff: tests/PathOpsCubicIntersectionTest.cpp

Issue 19280002: call newOneOff instead of oneOff (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix debug/release builds Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PathOpsCubicIntersectionTest.cpp
diff --git a/tests/PathOpsCubicIntersectionTest.cpp b/tests/PathOpsCubicIntersectionTest.cpp
index 7be7b28a39bfcdfa3469f5a7f0e9447b75a456d0..4cac2d07ec27a753ba9795121abbae8c20c4b065 100644
--- a/tests/PathOpsCubicIntersectionTest.cpp
+++ b/tests/PathOpsCubicIntersectionTest.cpp
@@ -306,17 +306,15 @@ static void oneOff(skiatest::Reporter* reporter, const SkDCubic& cubic1, const S
xy1 = cubic1.xyAtT(tt1);
tt2 = intersections[1][pt3];
xy2 = cubic2.xyAtT(tt2);
+ const SkDPoint& iPt = intersections.pt(pt3);
#if ONE_OFF_DEBUG
- DEBUGCODE(const SkDPoint& iPt = intersections.pt(pt3);)
SkDebugf("%s t1=%1.9g (%1.9g, %1.9g) (%1.9g, %1.9g) (%1.9g, %1.9g) t2=%1.9g\n",
__FUNCTION__, tt1, xy1.fX, xy1.fY, iPt.fX,
iPt.fY, xy2.fX, xy2.fY, tt2);
#endif
-#if 0
REPORTER_ASSERT(reporter, xy1.approximatelyEqual(iPt));
REPORTER_ASSERT(reporter, xy2.approximatelyEqual(iPt));
REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2));
-#endif
}
}
@@ -340,7 +338,7 @@ static void oneOffTests(skiatest::Reporter* reporter) {
}
for (size_t outer = 0; outer < newTestSetCount - 1; ++outer) {
for (size_t inner = outer + 1; inner < newTestSetCount; ++inner) {
- oneOff(reporter, outer, inner);
+ newOneOff(reporter, outer, inner);
}
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698