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

Unified Diff: experimental/Intersection/Inline_Tests.cpp

Issue 867213004: remove prototype pathops code (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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 | « experimental/Intersection/Extrema.cpp ('k') | experimental/Intersection/IntersectionUtilities.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/Intersection/Inline_Tests.cpp
diff --git a/experimental/Intersection/Inline_Tests.cpp b/experimental/Intersection/Inline_Tests.cpp
deleted file mode 100644
index 90f5e7ab024051c04b31bd576e41c3dc9c0d4ecc..0000000000000000000000000000000000000000
--- a/experimental/Intersection/Inline_Tests.cpp
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright 2012 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-#include "CurveIntersection.h"
-#include "Intersection_Tests.h"
-#include "IntersectionUtilities.h"
-
-static void assert_that(int x, int y, const char* s) {
- if (x == y) {
- return;
- }
- SkDebugf("result=%d expected=%d %s\n", x, y, s);
-}
-
-static void side_test() {
- assert_that(side(-1), 0, "side(-1) != 0");
- assert_that(side(0), 1, "side(0) != 1");
- assert_that(side(1), 2, "side(1) != 2");
-}
-
-static void sideBit_test() {
- assert_that(sideBit(-1), 1, "sideBit(-1) != 1");
- assert_that(sideBit(0), 2, "sideBit(0) != 2");
- assert_that(sideBit(1), 4, "sideBit(1) != 4");
-}
-
-static void other_two_test() {
- for (int x = 0; x < 4; ++x) {
- for (int y = 0; y < 4; ++y) {
- if (x == y) {
- continue;
- }
- int mask = other_two(x, y);
- int all = 1 << x;
- all |= 1 << y;
- all |= 1 << (x ^ mask);
- all |= 1 << (y ^ mask);
- if (all == 0x0F) {
- continue;
- }
- SkDebugf("[%d,%d] other_two failed mask=%d [%d,%d]\n",
- x, y, mask, x ^ mask, y ^ mask);
- }
- }
-}
-
-void Inline_Tests() {
- side_test();
- sideBit_test();
- other_two_test();
-}
« no previous file with comments | « experimental/Intersection/Extrema.cpp ('k') | experimental/Intersection/IntersectionUtilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698