From 4d3a07b4943fa173b8db93d54d89baa24b35e0c5 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 7 Nov 2010 17:16:59 +0000 Subject: 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 --- test/common/md5.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/common') 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]); -- cgit v1.2.3