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 DMJsonWriter_DEFINED | 8 #ifndef DMJsonWriter_DEFINED |
9 #define DMJsonWriter_DEFINED | 9 #define DMJsonWriter_DEFINED |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 /** | 38 /** |
39 * Add a Failure from a Test. | 39 * Add a Failure from a Test. |
40 */ | 40 */ |
41 static void AddTestFailure(const skiatest::Failure&); | 41 static void AddTestFailure(const skiatest::Failure&); |
42 | 42 |
43 /** | 43 /** |
44 * Write all collected results to the file FLAGS_writePath[0]/dm.json. | 44 * Write all collected results to the file FLAGS_writePath[0]/dm.json. |
45 */ | 45 */ |
46 static void DumpJson(); | 46 static void DumpJson(); |
| 47 |
| 48 /** |
| 49 * Read JSON file at path written by DumpJson, calling callback for each |
| 50 * BitmapResult recorded in the file. Return success. |
| 51 */ |
| 52 static bool ReadJson(const char* path, void(*callback)(BitmapResult)); |
47 }; | 53 }; |
48 | 54 |
| 55 |
49 } // namespace DM | 56 } // namespace DM |
50 #endif // DMJsonWriter_DEFINED | 57 #endif // DMJsonWriter_DEFINED |
OLD | NEW |