| mtklein@google.com | d36522d | 2013-10-16 13:02:15 +0000 | [diff] [blame^] | 1 | #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 | |
| 9 | namespace DM { |
| 10 | |
| 11 | // underJoin("a", "b") -> "a_b" |
| 12 | SkString underJoin(const char* a, const char* b); |
| 13 | |
| 14 | // png("a") -> "a.png" |
| 15 | SkString png(SkString s); |
| 16 | |
| 17 | // Roughly, expectations.match(digest), but only does it if we're not ignoring the result. |
| 18 | bool meetsExpectations(const skiagm::Expectations& expectations, |
| 19 | const skiagm::GmResultDigest& digest); |
| 20 | |
| 21 | } // namespace DM |
| 22 | |
| 23 | #endif // DMUtil_DEFINED |