| Index: gm/gm_expectations.h
|
| diff --git a/gm/gm_expectations.h b/gm/gm_expectations.h
|
| index c69fafc13034de29a5dd602ea9f60f65404da053..1cd6a1f756233893c5c6b04c17641cb8653a2987 100644
|
| --- a/gm/gm_expectations.h
|
| +++ b/gm/gm_expectations.h
|
| @@ -22,13 +22,11 @@
|
|
|
| namespace skiagm {
|
|
|
| -#ifdef SK_BUILD_JSON_WRITER
|
| Json::Value CreateJsonTree(Json::Value expectedResults,
|
| Json::Value actualResultsFailed,
|
| Json::Value actualResultsFailureIgnored,
|
| Json::Value actualResultsNoComparison,
|
| Json::Value actualResultsSucceeded);
|
| -#endif
|
| /**
|
| * The digest of a GM test result.
|
| *
|
| @@ -42,14 +40,12 @@ namespace skiagm {
|
| */
|
| explicit GmResultDigest(const SkBitmap &bitmap);
|
|
|
| -#ifdef SK_BUILD_JSON_WRITER
|
| /**
|
| * Create a ResultDigest representing an allowed result
|
| * checksum within JSON expectations file, in the form
|
| * ["bitmap-64bitMD5", 12345].
|
| */
|
| explicit GmResultDigest(const Json::Value &jsonTypeValuePair);
|
| -#endif
|
|
|
| /**
|
| * Returns true if this GmResultDigest was fully and successfully
|
| @@ -63,13 +59,11 @@ namespace skiagm {
|
| */
|
| bool equals(const GmResultDigest &other) const;
|
|
|
| -#ifdef SK_BUILD_JSON_WRITER
|
| /**
|
| * Returns a JSON type/value pair representing this result,
|
| * such as ["bitmap-64bitMD5", 12345].
|
| */
|
| Json::Value asJsonTypeValuePair() const;
|
| -#endif
|
|
|
| /**
|
| * Returns the hashtype, such as "bitmap-64bitMD5", as an SkString.
|
| @@ -118,7 +112,6 @@ namespace skiagm {
|
| */
|
| explicit Expectations(const BitmapAndDigest& bitmapAndDigest);
|
|
|
| -#ifdef SK_BUILD_JSON_WRITER
|
| /**
|
| * Create Expectations from a JSON element as found within the
|
| * kJsonKey_ExpectedResults section.
|
| @@ -127,7 +120,6 @@ namespace skiagm {
|
| * don't have any expectations.
|
| */
|
| explicit Expectations(Json::Value jsonElement);
|
| -#endif
|
|
|
| /**
|
| * Returns true iff we want to ignore failed expectations.
|
| @@ -161,12 +153,10 @@ namespace skiagm {
|
| return (kUnknown_SkColorType == fBitmap.colorType()) ? NULL : &fBitmap;
|
| }
|
|
|
| -#ifdef SK_BUILD_JSON_WRITER
|
| /**
|
| * Return a JSON representation of the expectations.
|
| */
|
| Json::Value asJsonValue() const;
|
| -#endif
|
|
|
| private:
|
| const static bool kDefaultIgnoreFailure = false;
|
| @@ -209,7 +199,6 @@ namespace skiagm {
|
| const SkString fRootDir;
|
| };
|
|
|
| -#ifdef SK_BUILD_JSON_WRITER
|
| /**
|
| * Return Expectations based on JSON summary file.
|
| */
|
| @@ -237,7 +226,6 @@ namespace skiagm {
|
| Json::Value fJsonRoot;
|
| Json::Value fJsonExpectedResults;
|
| };
|
| -#endif // SK_BUILD_JSON_WRITER
|
|
|
| }
|
| #endif
|
|
|