blob: e808ca0f8f4cc730cc72ad3655e954b9e583f1bd [file] [log] [blame]
mtklein@google.comd36522d2013-10-16 13:02:15 +00001#ifndef DMUtil_DEFINED
2#define DMUtil_DEFINED
3
4#include "SkString.h"
5#include "gm_expectations.h"
6
7// Small free functions used in more than one place in DM.
8
9namespace DM {
10
11// underJoin("a", "b") -> "a_b"
12SkString underJoin(const char* a, const char* b);
13
14// png("a") -> "a.png"
15SkString png(SkString s);
16
17// Roughly, expectations.match(digest), but only does it if we're not ignoring the result.
18bool meetsExpectations(const skiagm::Expectations& expectations,
19 const skiagm::GmResultDigest& digest);
20
21} // namespace DM
22
23#endif // DMUtil_DEFINED