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

Unified Diff: tests/RecordPatternTest.cpp

Issue 275623002: Split Star into Star (stores nothing) and List (stores matches). (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: yagni 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
« no previous file with comments | « src/record/SkRecordPattern.h ('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..b0904ab7d6c5f0db2d443ce51ca6351c8325a01f 100644
--- a/tests/RecordPatternTest.cpp
+++ b/tests/RecordPatternTest.cpp
@@ -79,20 +79,17 @@ DEF_TEST(RecordPattern_Star, r) {
recorder.save();
recorder.restore();
REPORTER_ASSERT(r, pattern.match(&record, 0));
- REPORTER_ASSERT(r, pattern.second<SkTDArray<ClipRect*> >()->count() == 0);
recorder.save();
recorder.clipRect(SkRect::MakeWH(300, 200));
recorder.restore();
REPORTER_ASSERT(r, pattern.match(&record, 2));
- REPORTER_ASSERT(r, pattern.second<SkTDArray<ClipRect*> >()->count() == 1);
recorder.save();
recorder.clipRect(SkRect::MakeWH(300, 200));
recorder.clipRect(SkRect::MakeWH(100, 100));
recorder.restore();
REPORTER_ASSERT(r, pattern.match(&record, 5));
- REPORTER_ASSERT(r, pattern.second<SkTDArray<ClipRect*> >()->count() == 2);
}
DEF_TEST(RecordPattern_IsDraw, r) {
« no previous file with comments | « src/record/SkRecordPattern.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698