Searched refs:Hasher (Results 1 – 5 of 5) sorted by relevance
24 EXPECT_EQ(Hasher().hash(), Hasher().hash()); in TEST()25 EXPECT_EQ(Hasher().update(1).hash(), Hasher().update(1).hash()); in TEST()29 EXPECT_EQ(Hasher().updateShorts(shorts1, 5).hash(), Hasher().updateShorts(shorts2, 5).hash()); in TEST()31 Hasher hasher; in TEST()
29 class Hasher {31 Hasher() : mHash(0u) {} in Hasher() function33 IGNORE_INTEGER_OVERFLOW inline Hasher& update(uint32_t data) { in update()40 inline Hasher& updateShorts(const uint16_t* data, uint32_t length) { in updateShorts()52 inline Hasher& updateString(const std::string& str) { in updateString()
93 return Hasher() in hash()
41 return Hasher() in hash()
107 return Hasher() in computeHash()