Index: tests/MD5Test.cpp |
diff --git a/tests/MD5Test.cpp b/tests/MD5Test.cpp |
index efad26d48512851ff7905102b05276ac947c4eb2..214a7a80e87410c84295bb9523081cc6605dac6c 100644 |
--- a/tests/MD5Test.cpp |
+++ b/tests/MD5Test.cpp |
@@ -23,7 +23,7 @@ static void md5_test(const char* string, const SkMD5::Digest& expectedDigest, sk |
// All at once |
{ |
SkMD5 context; |
- context.update(reinterpret_cast<const uint8_t*>(string), len); |
+ context.write(string, len); |
SkMD5::Digest digest; |
context.finish(digest); |
@@ -36,7 +36,7 @@ static void md5_test(const char* string, const SkMD5::Digest& expectedDigest, sk |
const uint8_t* data = reinterpret_cast<const uint8_t*>(string); |
const uint8_t* end = reinterpret_cast<const uint8_t*>(string + len); |
for (; data < end; ++data) { |
- context.update(data, 1); |
+ context.write(data, 1); |
} |
SkMD5::Digest digest; |
context.finish(digest); |