Index: tests/PathTest.cpp |
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp |
index e33c912062228589f95e585aaa3b64771c89206b..b3980179383e76e0c5a128bdd993073b8a3c8f9d 100644 |
--- a/tests/PathTest.cpp |
+++ b/tests/PathTest.cpp |
@@ -15,8 +15,9 @@ |
#include "SkRandom.h" |
#include "SkReader32.h" |
#include "SkSize.h" |
-#include "SkWriter32.h" |
#include "SkSurface.h" |
+#include "SkTypes.h" |
+#include "SkWriter32.h" |
#if defined(WIN32) |
#define SUPPRESS_VISIBILITY_WARNING |
@@ -31,6 +32,18 @@ static SkSurface* new_surface(int w, int h) { |
return SkSurface::NewRaster(info); |
} |
+static void test_android_specific_behavior(skiatest::Reporter* reporter) { |
+#ifdef SK_BUILD_FOR_ANDROID |
+ SkPath path; |
+ path.moveTo(0, 0); |
+ path.lineTo(1, 1); |
+ REPORTER_ASSERT(path.getGenerationID() > 0); |
+ |
+ const SkPath copy(path); |
+ REPORTER_ASSERT(path.getGenerationID() == copy.getGenerationID()); |
+#endif |
+} |
+ |
// This used to assert in the debug build, as the edges did not all line-up. |
static void test_bad_cubic_crbug234190() { |
SkPath path; |
@@ -2450,6 +2463,7 @@ static void TestPath(skiatest::Reporter* reporter) { |
test_crbug_170666(); |
test_bad_cubic_crbug229478(); |
test_bad_cubic_crbug234190(); |
+ test_android_specific_behavior(reporter); |
} |
#include "TestClassDef.h" |