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

Unified Diff: testing/utils/md5.h

Issue 2514173002: Check dimensions and content of bitmaps in EmbedderTests. (Closed)
Patch Set: Fix Mac bots, but will other Macs be happy? Probably. Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: testing/utils/md5.h
diff --git a/testing/utils/md5.h b/testing/utils/md5.h
new file mode 100644
index 0000000000000000000000000000000000000000..5c69ae0d2bfe2fc03f870f0476e72abc6e2f237b
--- /dev/null
+++ b/testing/utils/md5.h
@@ -0,0 +1,26 @@
+// Copyright 2016 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef TESTING_UTILS_MD5_H_
+#define TESTING_UTILS_MD5_H_
+
+#include <stddef.h>
+
+#include <string>
+
+namespace pdfium {
+
+// MD5 stands for Message Digest algorithm 5.
+// MD5 is a robust hash function, designed for cyptography, but often used
Tom Sepez 2016/11/21 18:18:26 nit: s/is/was/ :). Just give the link to wikipedi
+// for file checksums. The code is complex and slow, but has few
+// collisions.
+// See Also:
+// http://en.wikipedia.org/wiki/MD5
+
+// Returns the MD5 (in hexadecimal) of a string.
+std::string MD5String(const void* data, size_t size);
+
+} // namespace pdfium
+
+#endif // TESTING_UTILS_MD5_H_

Powered by Google App Engine
This is Rietveld 408576698