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

Unified Diff: tests/RecordPatternTest.cpp

Issue 269543025: Partially restore small-T optimization for very small (empty) T. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 7 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
« src/record/SkRecord.h ('K') | « tests/RecordOptsTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/RecordPatternTest.cpp
diff --git a/tests/RecordPatternTest.cpp b/tests/RecordPatternTest.cpp
index 4f51bdba2481a2c22ede9e8d667452dd3817c616..3b96f84725109aab42400a76f9bca8da471106a6 100644
--- a/tests/RecordPatternTest.cpp
+++ b/tests/RecordPatternTest.cpp
@@ -30,7 +30,6 @@ DEF_TEST(RecordPattern_Simple, r) {
REPORTER_ASSERT(r, pattern.match(&record, 0));
REPORTER_ASSERT(r, pattern.first<Save>() != NULL);
REPORTER_ASSERT(r, pattern.second<ClipRect>() != NULL);
- REPORTER_ASSERT(r, pattern.third<Restore>() != NULL);
}
DEF_TEST(RecordPattern_StartingIndex, r) {
@@ -122,12 +121,10 @@ DEF_TEST(RecordPattern_IsDraw, r) {
REPORTER_ASSERT(r, pattern.match(&record, 3));
REPORTER_ASSERT(r, pattern.first<Save>() != NULL);
REPORTER_ASSERT(r, pattern.second<SkPaint>()->getColor() == 0xEEAA8822);
- REPORTER_ASSERT(r, pattern.third<Restore>() != NULL);
REPORTER_ASSERT(r, pattern.match(&record, 6));
REPORTER_ASSERT(r, pattern.first<Save>() != NULL);
REPORTER_ASSERT(r, pattern.second<SkPaint>()->getColor() == 0xFACEFACE);
- REPORTER_ASSERT(r, pattern.third<Restore>() != NULL);
}
DEF_TEST(RecordPattern_Complex, r) {
« src/record/SkRecord.h ('K') | « tests/RecordOptsTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698