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

Side by Side Diff: gm/gm_expectations.cpp

Issue 15298010: Improve tool that analyzes gm JSON summary (Closed) Base URL: http://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
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 7
8 #include "gm_expectations.h" 8 #include "gm_expectations.h"
9 #include "SkBitmapHasher.h" 9 #include "SkBitmapHasher.h"
10 #include "SkImageDecoder.h" 10 #include "SkImageDecoder.h"
11 11
12 #define DEBUGFAIL_SEE_STDERR SkDEBUGFAIL("see stderr for message") 12 #define DEBUGFAIL_SEE_STDERR SkDEBUGFAIL("see stderr for message")
13 13
14 // These constants must be kept in sync with the JSONKEY_ constants in 14 // These constants must be kept in sync with the JSONKEY_ constants in
15 // confirm_no_failures_in_json.py ! 15 // display_json_results.py !
16 const static char kJsonKey_ActualResults[] = "actual-results"; 16 const static char kJsonKey_ActualResults[] = "actual-results";
17 const static char kJsonKey_ActualResults_Failed[] = "failed"; 17 const static char kJsonKey_ActualResults_Failed[] = "failed";
18 const static char kJsonKey_ActualResults_FailureIgnored[]= "failure-ignored"; 18 const static char kJsonKey_ActualResults_FailureIgnored[]= "failure-ignored";
19 const static char kJsonKey_ActualResults_NoComparison[] = "no-comparison"; 19 const static char kJsonKey_ActualResults_NoComparison[] = "no-comparison";
20 const static char kJsonKey_ActualResults_Succeeded[] = "succeeded"; 20 const static char kJsonKey_ActualResults_Succeeded[] = "succeeded";
21 const static char kJsonKey_ActualResults_AnyStatus_BitmapHash[] = "bitmap-64bit MD5"; 21 const static char kJsonKey_ActualResults_AnyStatus_BitmapHash[] = "bitmap-64bit MD5";
22 22
23 const static char kJsonKey_ExpectedResults[] = "expected-results"; 23 const static char kJsonKey_ExpectedResults[] = "expected-results";
24 const static char kJsonKey_ExpectedResults_AllowedBitmapHashes[] = "allowed-bitm ap-64bitMD5s"; 24 const static char kJsonKey_ExpectedResults_AllowedBitmapHashes[] = "allowed-bitm ap-64bitMD5s";
25 const static char kJsonKey_ExpectedResults_IgnoreFailure[] = "ignore-f ailure"; 25 const static char kJsonKey_ExpectedResults_IgnoreFailure[] = "ignore-f ailure";
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 Json::Reader reader; 235 Json::Reader reader;
236 if (!reader.parse(bytes, bytes+size, *jsonRoot)) { 236 if (!reader.parse(bytes, bytes+size, *jsonRoot)) {
237 gm_fprintf(stderr, "error parsing JSON file %s\n", jsonPath); 237 gm_fprintf(stderr, "error parsing JSON file %s\n", jsonPath);
238 DEBUGFAIL_SEE_STDERR; 238 DEBUGFAIL_SEE_STDERR;
239 return false; 239 return false;
240 } 240 }
241 return true; 241 return true;
242 } 242 }
243 243
244 } 244 }
OLDNEW
« gm/display_json_results.py ('K') | « gm/display_json_results.py ('k') | gm/tests/run.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698