| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |