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

Unified Diff: tests/RecordPatternTest.cpp

Issue 1465443002: Modernize SkRecordPattern.h (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: inlines back Created 5 years, 1 month 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/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 d1e48bb8386a49f334c64abe9f463482000ad8ae..33a0114c3591f671eeb3a2ff6af5001ec82e89de 100644
--- a/tests/RecordPatternTest.cpp
+++ b/tests/RecordPatternTest.cpp
@@ -13,9 +13,9 @@
#include "SkRecords.h"
using namespace SkRecords;
-typedef Pattern3<Is<Save>,
- Is<ClipRect>,
- Is<Restore> >
+typedef Pattern<Is<Save>,
+ Is<ClipRect>,
+ Is<Restore>>
SaveClipRectRestore;
DEF_TEST(RecordPattern_Simple, r) {
@@ -77,8 +77,8 @@ DEF_TEST(RecordPattern_DontMatchSubsequences, r) {
REPORTER_ASSERT(r, !pattern.match(&record, 0));
}
-DEF_TEST(RecordPattern_Star, r) {
- Pattern3<Is<Save>, Star<Is<ClipRect> >, Is<Restore> > pattern;
+DEF_TEST(RecordPattern_Greedy, r) {
+ Pattern<Is<Save>, Greedy<Is<ClipRect>>, Is<Restore>> pattern;
SkRecord record;
SkRecorder recorder(&record, 1920, 1200);
@@ -98,11 +98,11 @@ DEF_TEST(RecordPattern_Star, r) {
}
DEF_TEST(RecordPattern_Complex, r) {
- Pattern3<Is<Save>,
- Star<Not<Or3<Is<Save>,
+ Pattern<Is<Save>,
+ Greedy<Not<Or<Is<Save>,
Is<Restore>,
- IsDraw> > >,
- Is<Restore> > pattern;
+ IsDraw>>>,
+ Is<Restore>> pattern;
SkRecord record;
SkRecorder recorder(&record, 1920, 1200);
@@ -142,7 +142,7 @@ DEF_TEST(RecordPattern_Complex, r) {
}
DEF_TEST(RecordPattern_SaveLayerIsNotADraw, r) {
- Pattern1<IsDraw> pattern;
+ Pattern<IsDraw> pattern;
SkRecord record;
SkRecorder recorder(&record, 1920, 1200);
« no previous file with comments | « src/core/SkRecordPattern.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698