OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 #ifndef gm_expectations_DEFINED | 7 #ifndef gm_expectations_DEFINED |
8 #define gm_expectations_DEFINED | 8 #define gm_expectations_DEFINED |
9 | 9 |
10 #include "gm.h" | 10 #include "gm.h" |
11 #include "SkBitmap.h" | 11 #include "SkBitmap.h" |
12 #include "SkBitmapHasher.h" | 12 #include "SkBitmapHasher.h" |
13 #include "SkData.h" | 13 #include "SkData.h" |
14 #include "SkJSONCPP.h" | 14 #include "SkJSONCPP.h" |
15 #include "SkOSFile.h" | 15 #include "SkOSFile.h" |
16 #include "SkRefCnt.h" | 16 #include "SkRefCnt.h" |
17 #include "SkStream.h" | 17 #include "SkStream.h" |
18 #include "SkTArray.h" | 18 #include "SkTArray.h" |
19 | 19 |
20 | 20 |
21 namespace skiagm { | 21 namespace skiagm { |
22 | 22 |
23 void gm_fprintf(FILE *stream, const char format[], ...); | |
24 | |
25 Json::Value CreateJsonTree(Json::Value expectedResults, | 23 Json::Value CreateJsonTree(Json::Value expectedResults, |
26 Json::Value actualResultsFailed, | 24 Json::Value actualResultsFailed, |
27 Json::Value actualResultsFailureIgnored, | 25 Json::Value actualResultsFailureIgnored, |
28 Json::Value actualResultsNoComparison, | 26 Json::Value actualResultsNoComparison, |
29 Json::Value actualResultsSucceeded); | 27 Json::Value actualResultsSucceeded); |
30 | 28 |
31 /** | 29 /** |
32 * The digest of a GM test result. | 30 * The digest of a GM test result. |
33 * | 31 * |
34 * Currently, this is always a uint64_t hash digest of an SkBitmap... | 32 * Currently, this is always a uint64_t hash digest of an SkBitmap... |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 * Returns true if successful. | 262 * Returns true if successful. |
265 */ | 263 */ |
266 static bool Parse(const char *jsonPath, Json::Value *jsonRoot); | 264 static bool Parse(const char *jsonPath, Json::Value *jsonRoot); |
267 | 265 |
268 Json::Value fJsonRoot; | 266 Json::Value fJsonRoot; |
269 Json::Value fJsonExpectedResults; | 267 Json::Value fJsonExpectedResults; |
270 }; | 268 }; |
271 | 269 |
272 } | 270 } |
273 #endif | 271 #endif |
OLD | NEW |