diff options
author | mtklein <mtklein@chromium.org> | 2014-07-10 14:10:45 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-07-10 14:10:47 -0700 |
commit | 53d435990bdb4d14df78013da45a9364d0287ebe (patch) | |
tree | 52ba2dff9d429e069fe07c63a8cfa6960c32327e /tests/ChecksumTest.cpp | |
parent | b17c764f852c04d84f8fbbc3c82eefb8c7665217 (diff) |
Slim Skia down to just one murmur3 implementation.
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/6ac0037b70410ff7d5ce5788bc89314223e1a587
Committed: https://skia.googlesource.com/skia/+/67a3271f0de9ccc32d559b042b862528272047cc
R=reed@google.com, mtklein@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/376183004
Diffstat (limited to 'tests/ChecksumTest.cpp')
-rw-r--r-- | tests/ChecksumTest.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/ChecksumTest.cpp b/tests/ChecksumTest.cpp index 6248678043..923f303509 100644 --- a/tests/ChecksumTest.cpp +++ b/tests/ChecksumTest.cpp @@ -11,13 +11,15 @@ // Murmur3 has an optional third seed argument, so we wrap it to fit a uniform type. -static uint32_t murmur_noseed(const uint32_t* d, size_t l) { return SkChecksum::Murmur3(d, l); } +static uint32_t murmur_noseed(const SkChecksum::FourByteAligned* d, size_t l) { + return SkChecksum::Murmur3(d, l); +} #define ASSERT(x) REPORTER_ASSERT(r, x) DEF_TEST(Checksum, r) { // Algorithms to test. They're currently all uint32_t(const uint32_t*, size_t). - typedef uint32_t(*algorithmProc)(const uint32_t*, size_t); + typedef uint32_t(*algorithmProc)(const SkChecksum::FourByteAligned*, size_t); const algorithmProc kAlgorithms[] = { &SkChecksum::Compute, &murmur_noseed }; // Put 128 random bytes into two identical buffers. Any multiple of 4 will do. |