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

Unified Diff: dm/DMUtil.cpp

Issue 22839016: Skeleton of DM (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: one last sync Created 7 years, 2 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 | « dm/DMUtil.h ('k') | dm/README » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMUtil.cpp
diff --git a/dm/DMUtil.cpp b/dm/DMUtil.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..803c338adce932fd3f1244a9af4609bff75ca92e
--- /dev/null
+++ b/dm/DMUtil.cpp
@@ -0,0 +1,23 @@
+#include "DMUtil.h"
+
+namespace DM {
+
+SkString underJoin(const char* a, const char* b) {
+ SkString s;
+ s.appendf("%s_%s", a, b);
+ return s;
+}
+
+SkString png(SkString s) {
+ s.appendf(".png");
+ return s;
+}
+
+bool meetsExpectations(const skiagm::Expectations& expectations,
+ const skiagm::GmResultDigest& digest) {
+ return expectations.ignoreFailure()
+ || expectations.empty()
+ || expectations.match(digest);
+}
+
+} // namespace DM
« no previous file with comments | « dm/DMUtil.h ('k') | dm/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698