aboutsummaryrefslogtreecommitdiff
path: root/test/common
diff options
context:
space:
mode:
authorMax Horn2010-11-07 17:16:59 +0000
committerMax Horn2010-11-07 17:16:59 +0000
commit4d3a07b4943fa173b8db93d54d89baa24b35e0c5 (patch)
tree124287f718ce17d9c6dcafb9331eab7d8d9b405d /test/common
parent036e88d382f653fd8590bb2edec2e45072f9d0be (diff)
downloadscummvm-rg350-4d3a07b4943fa173b8db93d54d89baa24b35e0c5.tar.gz
scummvm-rg350-4d3a07b4943fa173b8db93d54d89baa24b35e0c5.tar.bz2
scummvm-rg350-4d3a07b4943fa173b8db93d54d89baa24b35e0c5.zip
COMMON: Rename and tweak MD5 functions
* names now comply to our naming conventions * the function computeStreamMD5AsString which computes the MD5 as a hex string now returns it as a Common::String * add doxygen comments svn-id: r54121
Diffstat (limited to 'test/common')
-rw-r--r--test/common/md5.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/common/md5.h b/test/common/md5.h
index c59b6dc853..f310845bb9 100644
--- a/test/common/md5.h
+++ b/test/common/md5.h
@@ -29,14 +29,14 @@ static const char *md5_test_digest[] = {
class MD5TestSuite : public CxxTest::TestSuite {
public:
- void test_md5_file() {
+ void test_computeStreamMD5() {
int i, j;
char output[33];
unsigned char md5sum[16];
for (i = 0; i < 7; i++) {
Common::MemoryReadStream stream((const byte *)md5_test_string[i], strlen(md5_test_string[i]));
- Common::md5_file(stream, md5sum);
+ Common::computeStreamMD5(stream, md5sum);
for (j = 0; j < 16; j++) {
sprintf(output + j * 2, "%02x", md5sum[j]);