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

Unified Diff: tests/SkRasterPipelineTest.cpp

Issue 2149443002: SkRasterPipeline: simplify impl and remove need to rewire stages (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: comments Created 4 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 | « src/core/SkRasterPipeline.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/SkRasterPipelineTest.cpp
diff --git a/tests/SkRasterPipelineTest.cpp b/tests/SkRasterPipelineTest.cpp
index 1db020670505a67e38980c0e29aef0712eafb14f..beb517b3f7aca5cc7c45dd86eaab1e2aef530093 100644
--- a/tests/SkRasterPipelineTest.cpp
+++ b/tests/SkRasterPipelineTest.cpp
@@ -85,3 +85,17 @@ DEF_TEST(SkRasterPipeline, r) {
REPORTER_ASSERT(r, dst_vals[3] == 16);
REPORTER_ASSERT(r, dst_vals[4] == 25);
}
+
+DEF_TEST(SkRasterPipeline_empty, r) {
+ // No asserts... just a test that this is safe to run.
+ SkRasterPipeline p;
+ p.run(20);
+}
+
+DEF_TEST(SkRasterPipeline_nonsense, r) {
+ // No asserts... just a test that this is safe to run and terminates.
+ // square() always calls st->next(); this makes sure we've always got something there to call.
+ SkRasterPipeline p;
+ p.append(square);
+ p.run(20);
+}
« no previous file with comments | « src/core/SkRasterPipeline.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698