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

Unified Diff: tests/MD5Test.cpp

Issue 1913173003: SkMD5: .update() -> .write() (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-04-22 (Friday) 16:17:21 EDT Created 4 years, 8 months 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: 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);
« src/core/SkMD5.cpp ('K') | « tests/CodecTest.cpp ('k') | tests/PictureTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698