summaryrefslogtreecommitdiffstats
path: root/Tools/TestWebKitAPI/Tests/WTF/MD5.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/TestWebKitAPI/Tests/WTF/MD5.cpp')
-rw-r--r--Tools/TestWebKitAPI/Tests/WTF/MD5.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/TestWebKitAPI/Tests/WTF/MD5.cpp b/Tools/TestWebKitAPI/Tests/WTF/MD5.cpp
index 7f592aee4..2c862a9cf 100644
--- a/Tools/TestWebKitAPI/Tests/WTF/MD5.cpp
+++ b/Tools/TestWebKitAPI/Tests/WTF/MD5.cpp
@@ -21,12 +21,12 @@ static void expectMD5(CString input, CString expected)
{
MD5 md5;
md5.addBytes(reinterpret_cast<const uint8_t*>(input.data()), input.length());
- Vector<uint8_t, 16> digest;
+ MD5::Digest digest;
md5.checksum(digest);
char* buf = 0;
CString actual = CString::newUninitialized(32, buf);
- for (size_t i = 0; i < 16; i++, buf += 2)
- snprintf(buf, 3, "%02x", digest.at(i));
+ for (size_t i = 0; i < MD5::hashSize; i++, buf += 2)
+ snprintf(buf, 3, "%02x", digest[i]);
ASSERT_EQ(expected.length(), actual.length());
ASSERT_STREQ(expected.data(), actual.data());