summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/test_shell.h
diff options
context:
space:
mode:
authorojan@google.com <ojan@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-17 00:51:40 +0000
committerojan@google.com <ojan@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-17 00:51:40 +0000
commitb531284945332066027a35bf95de1acb54efd8c6 (patch)
treebcf074a790f9bb298eb06b3ef7bee6c8f96bf5b6 /webkit/tools/test_shell/test_shell.h
parenta862471b184f63a6f39c854e3abe4c26fb1edd1c (diff)
downloadchromium_src-b531284945332066027a35bf95de1acb54efd8c6.zip
chromium_src-b531284945332066027a35bf95de1acb54efd8c6.tar.gz
chromium_src-b531284945332066027a35bf95de1acb54efd8c6.tar.bz2
Only dump image results if the hashes don't match.
We spend a lot of time doing PNG encoding now for passing tests. There's more work to be done for the --run-singly case still. This seems to save another ~2minutes on Windows Release. Review URL: http://codereview.chromium.org/79035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13911 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/test_shell.h')
-rw-r--r--webkit/tools/test_shell/test_shell.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/webkit/tools/test_shell/test_shell.h b/webkit/tools/test_shell/test_shell.h
index 11c8daf..c5806c3 100644
--- a/webkit/tools/test_shell/test_shell.h
+++ b/webkit/tools/test_shell/test_shell.h
@@ -64,6 +64,8 @@ public:
// Filename we dump pixels to (when pixel testing is enabled).
std::wstring pixel_file_name;
+ // The md5 hash of the bitmap dump (when pixel testing is enabled).
+ std::string pixel_hash;
// URL of the test.
std::string test_url;
};
@@ -201,7 +203,8 @@ public:
// Writes the image captured from the given web frame to the given file.
// The returned string is the ASCII-ized MD5 sum of the image.
static std::string DumpImage(WebFrame* web_frame,
- const std::wstring& file_name);
+ const std::wstring& file_name,
+ const std::string& pixel_hash);
static void ResetWebPreferences();