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

Side by Side Diff: gm/gm_expectations.h

Issue 15986004: Revert "Add path utils, plus a test for it." (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « gm/factory.cpp ('k') | 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"
(...skipping 14 matching lines...) Expand all
25 #include "json/reader.h" 25 #include "json/reader.h"
26 #include "json/value.h" 26 #include "json/value.h"
27 #ifdef SK_BUILD_FOR_WIN 27 #ifdef SK_BUILD_FOR_WIN
28 #pragma warning(pop) 28 #pragma warning(pop)
29 #endif 29 #endif
30 30
31 namespace skiagm { 31 namespace skiagm {
32 32
33 void gm_fprintf(FILE *stream, const char format[], ...); 33 void gm_fprintf(FILE *stream, const char format[], ...);
34 34
35 /**
36 * Assembles rootPath and relativePath into a single path, like this:
37 * rootPath/relativePath
38 *
39 * Uses SkPATH_SEPARATOR, to work on all platforms.
40 *
41 * TODO(epoger): This should probably move into SkOSFile.h
42 */
43 SkString SkPathJoin(const char *rootPath, const char *relativePath);
44
35 Json::Value CreateJsonTree(Json::Value expectedResults, 45 Json::Value CreateJsonTree(Json::Value expectedResults,
36 Json::Value actualResultsFailed, 46 Json::Value actualResultsFailed,
37 Json::Value actualResultsFailureIgnored, 47 Json::Value actualResultsFailureIgnored,
38 Json::Value actualResultsNoComparison, 48 Json::Value actualResultsNoComparison,
39 Json::Value actualResultsSucceeded); 49 Json::Value actualResultsSucceeded);
40 50
41 /** 51 /**
42 * The digest of a GM test result. 52 * The digest of a GM test result.
43 * 53 *
44 * Currently, this is always a uint64_t hash digest of an SkBitmap... 54 * Currently, this is always a uint64_t hash digest of an SkBitmap...
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 * Returns true if successful. 248 * Returns true if successful.
239 */ 249 */
240 static bool Parse(const char *jsonPath, Json::Value *jsonRoot); 250 static bool Parse(const char *jsonPath, Json::Value *jsonRoot);
241 251
242 Json::Value fJsonRoot; 252 Json::Value fJsonRoot;
243 Json::Value fJsonExpectedResults; 253 Json::Value fJsonExpectedResults;
244 }; 254 };
245 255
246 } 256 }
247 #endif 257 #endif
OLDNEW
« no previous file with comments | « gm/factory.cpp ('k') | gm/gm_expectations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698