| Index: gm/gmmain.cpp
|
| ===================================================================
|
| --- gm/gmmain.cpp (revision 8850)
|
| +++ gm/gmmain.cpp (working copy)
|
| @@ -766,16 +766,18 @@
|
| return errors;
|
| }
|
|
|
| + // EPOGER: move this into gm_expectations.h (or a .cpp file) to isolate the code that knows about JSON structure
|
| /**
|
| * Add this result to the appropriate JSON collection of actual results,
|
| * depending on status.
|
| */
|
| + // EPOGER: replace SkHashDigest actualBitmapHash with a level of indirection: resultDigest, which may be a BitmapCityhash or a BytewiseCityhash.
|
| void add_actual_results_to_json_summary(const char testName[],
|
| const SkHashDigest& actualBitmapHash,
|
| ErrorCombination result,
|
| bool ignoreFailure) {
|
| Json::Value actualResults;
|
| - actualResults[kJsonKey_ActualResults_AnyStatus_Checksum] =
|
| + actualResults[kJsonKey_ActualResults_AnyStatus_BitmapCityhash] =
|
| asJsonValue(actualBitmapHash);
|
| if (result.isEmpty()) {
|
| this->fJsonActualResults_Succeeded[testName] = actualResults;
|
| @@ -822,7 +824,7 @@
|
| // just fill it in as we go; once gm accepts a JSON file as input,
|
| // we'll have to change that.
|
| Json::Value expectedResults;
|
| - expectedResults[kJsonKey_ExpectedResults_Checksums] =
|
| + expectedResults[kJsonKey_ExpectedResults_AllowedBitmapCityhashes] =
|
| expectations.allowedChecksumsAsJson();
|
| expectedResults[kJsonKey_ExpectedResults_IgnoreFailure] =
|
| expectations.ignoreFailure();
|
|
|