Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(579)

Side by Side Diff: gm/gm_expectations.h

Issue 181933002: replace gm_fprintf() calls with SkDebugf() (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | gm/gm_expectations.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | gm/gm_expectations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698