Home
last modified time | relevance | path

Searched refs:SIP_WITH_KEY (Results 1 – 1 of 1) sorted by relevance

/external/guava/guava-tests/test/com/google/common/hash/
DSipHashFunctionTest.java34 private static final HashFunction SIP_WITH_KEY = Hashing.sipHash24(K0, K1); field in SipHashFunctionTest
152 SIP_WITH_KEY.hashBytes(col1), in testCollisionsDueToIncorrectSignExtension()
153 SIP_WITH_KEY.hashBytes(col2), in testCollisionsDueToIncorrectSignExtension()
154 SIP_WITH_KEY.hashBytes(col3)); in testCollisionsDueToIncorrectSignExtension()
159 assertEquals("Hashing.sipHash24(" + K0 + ", " + K1 + ")", SIP_WITH_KEY.toString()); in testToString()
165 assertEquals(expected, SIP_WITH_KEY.hashString(input, UTF_8).asLong()); in assertSip()
166 assertEquals(expected, SIP_WITH_KEY.newHasher().putString(input, UTF_8).hash().asLong()); in assertSip()
172 assertEquals(expected, SIP_WITH_KEY.hashBytes(input).asLong()); in assertSip()
173 assertEquals(expected, SIP_WITH_KEY.newHasher().putBytes(input).hash().asLong()); in assertSip()