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

Side by Side Diff: gm/gm_expectations.h

Issue 26297004: More work to integrate skimage with rebaseline tools. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Rebase Created 7 years, 2 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 #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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 public: 109 public:
110 /** 110 /**
111 * No expectations at all. 111 * No expectations at all.
112 */ 112 */
113 explicit Expectations(bool ignoreFailure=kDefaultIgnoreFailure); 113 explicit Expectations(bool ignoreFailure=kDefaultIgnoreFailure);
114 114
115 /** 115 /**
116 * Expect exactly one image (appropriate for the case when we 116 * Expect exactly one image (appropriate for the case when we
117 * are comparing against a single PNG file). 117 * are comparing against a single PNG file).
118 */ 118 */
119 Expectations(const SkBitmap& bitmap, bool ignoreFailure=kDefaultIgnoreFa ilure); 119 explicit Expectations(const SkBitmap& bitmap, bool ignoreFailure=kDefaul tIgnoreFailure);
120
121 /**
122 * Expect exactly one image, whose digest has already been computed.
123 */
124 explicit Expectations(const BitmapAndDigest& bitmapAndDigest);
120 125
121 /** 126 /**
122 * Create Expectations from a JSON element as found within the 127 * Create Expectations from a JSON element as found within the
123 * kJsonKey_ExpectedResults section. 128 * kJsonKey_ExpectedResults section.
124 * 129 *
125 * It's fine if the jsonElement is null or empty; in that case, we just 130 * It's fine if the jsonElement is null or empty; in that case, we just
126 * don't have any expectations. 131 * don't have any expectations.
127 */ 132 */
128 explicit Expectations(Json::Value jsonElement); 133 explicit Expectations(Json::Value jsonElement);
129 134
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 * Returns true if successful. 274 * Returns true if successful.
270 */ 275 */
271 static bool Parse(const char *jsonPath, Json::Value *jsonRoot); 276 static bool Parse(const char *jsonPath, Json::Value *jsonRoot);
272 277
273 Json::Value fJsonRoot; 278 Json::Value fJsonRoot;
274 Json::Value fJsonExpectedResults; 279 Json::Value fJsonExpectedResults;
275 }; 280 };
276 281
277 } 282 }
278 #endif 283 #endif
OLDNEW
« no previous file with comments | « expectations/skimage/Test-Win7-ShuttleA-HD2000-x86_64-Release/expected-results.json ('k') | gm/gm_expectations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698