summaryrefslogtreecommitdiff
path: root/tests/pb
diff options
context:
space:
mode:
authorEsun Kim <veblush@google.com>2019-08-09 09:10:34 -0700
committerGitHub <noreply@github.com>2019-08-09 09:10:34 -0700
commit931bbecbd3230ae7f22efa5d203639facc47f719 (patch)
treef43d93e56708cec6ccbe95ffb7a389279297ef9b /tests/pb
parent59f43cd6e3d45b28e5226ee537f3f173c1410e61 (diff)
parent6f9a9fb2faa61e7cbd3949ee4590967e0eb0dee8 (diff)
Merge pull request #205 from veblush/murmur
Rename MurmurHash2 to upb_murmur_hash2
Diffstat (limited to 'tests/pb')
-rw-r--r--tests/pb/test_decoder.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/pb/test_decoder.cc b/tests/pb/test_decoder.cc
index fb69541..5cc59e4 100644
--- a/tests/pb/test_decoder.cc
+++ b/tests/pb/test_decoder.cc
@@ -447,12 +447,12 @@ upb::pb::DecoderPtr CreateDecoder(upb::Arena* arena,
uint32_t Hash(const string& proto, const string* expected_output, size_t seam1,
size_t seam2, bool may_skip) {
- uint32_t hash = MurmurHash2(proto.c_str(), proto.size(), 0);
+ uint32_t hash = upb_murmur_hash2(proto.c_str(), proto.size(), 0);
if (expected_output)
- hash = MurmurHash2(expected_output->c_str(), expected_output->size(), hash);
- hash = MurmurHash2(&seam1, sizeof(seam1), hash);
- hash = MurmurHash2(&seam2, sizeof(seam2), hash);
- hash = MurmurHash2(&may_skip, sizeof(may_skip), hash);
+ hash = upb_murmur_hash2(expected_output->c_str(), expected_output->size(), hash);
+ hash = upb_murmur_hash2(&seam1, sizeof(seam1), hash);
+ hash = upb_murmur_hash2(&seam2, sizeof(seam2), hash);
+ hash = upb_murmur_hash2(&may_skip, sizeof(may_skip), hash);
return hash;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback