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

Side by Side Diff: tools/image_expectations.h

Issue 479613002: Add ability to output ImageBaseGSUrl to render_picture and use in rebaseline server (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Cleanup and add to gm_json.py Created 6 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 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 #ifndef image_expectations_DEFINED 8 #ifndef image_expectations_DEFINED
9 #define image_expectations_DEFINED 9 #define image_expectations_DEFINED
10 10
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 /** 113 /**
114 * Adds a key/value pair to the descriptions dict within the summary of results. 114 * Adds a key/value pair to the descriptions dict within the summary of results.
115 * 115 *
116 * @param key key within the descriptions dict 116 * @param key key within the descriptions dict
117 * @param value value to associate with that key 117 * @param value value to associate with that key
118 */ 118 */
119 void addDescription(const char *key, const char *value); 119 void addDescription(const char *key, const char *value);
120 120
121 /** 121 /**
122 * Adds a Google Storage Bucket to the summary of results.
123 *
124 * @param bucket the Google Storage bucket
125 */
126 void setGoogleStorageBucket(const char *bucket);
127
128 /**
122 * Returns true if this test result matches its expectations. 129 * Returns true if this test result matches its expectations.
123 * If there are no expectations for this test result, this will return f alse. 130 * If there are no expectations for this test result, this will return f alse.
124 * 131 *
125 * @param sourceName name of the source file that generated this result 132 * @param sourceName name of the source file that generated this result
126 * @param digest description of the image's contents 133 * @param digest description of the image's contents
127 * @param tileNumber if not NULL, pointer to tile number 134 * @param tileNumber if not NULL, pointer to tile number
128 */ 135 */
129 bool matchesExpectation(const char *sourceName, const ImageDigest &diges t, 136 bool matchesExpectation(const char *sourceName, const ImageDigest &diges t,
130 const int *tileNumber=NULL); 137 const int *tileNumber=NULL);
131 138
(...skipping 12 matching lines...) Expand all
144 * It is up to the caller to close filePtr after this is done. 151 * It is up to the caller to close filePtr after this is done.
145 * 152 *
146 * Returns true if successful. 153 * Returns true if successful.
147 */ 154 */
148 static bool Parse(SkFILE* filePtr, Json::Value *jsonRoot); 155 static bool Parse(SkFILE* filePtr, Json::Value *jsonRoot);
149 156
150 Json::Value fActualResults; 157 Json::Value fActualResults;
151 Json::Value fDescriptions; 158 Json::Value fDescriptions;
152 Json::Value fExpectedJsonRoot; 159 Json::Value fExpectedJsonRoot;
153 Json::Value fExpectedResults; 160 Json::Value fExpectedResults;
161 Json::Value fGoogleStorageBucket;
154 }; 162 };
155 163
156 } // namespace sk_tools 164 } // namespace sk_tools
157 165
158 #endif // image_expectations_DEFINED 166 #endif // image_expectations_DEFINED
OLDNEW
« gm/gm_json.py ('K') | « gm/gm_json.py ('k') | tools/image_expectations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698