Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/hash/
DHashingInputStreamTest.java117 HashCode expectedHash = Hashing.md5().hashBytes(testBytes); in testHash_hashesCorrectly() local
124 assertEquals(expectedHash, in.hash()); in testHash_hashesCorrectly()
128 HashCode expectedHash = Hashing.md5().hashBytes(testBytes); in testHash_hashesCorrectlyReadOutOfBound() local
136 assertEquals(expectedHash, in.hash()); in testHash_hashesCorrectlyReadOutOfBound()
140 HashCode expectedHash = Hashing.md5().hashBytes(new byte[] {'m', 's'}); in testHash_hashesCorrectlyForSkipping() local
150 assertEquals(expectedHash, in.hash()); in testHash_hashesCorrectlyForSkipping()
DHashingOutputStreamTest.java82 HashCode expectedHash = Hashing.md5().hashBytes(buf); in testHash_hashesCorrectly() local
87 assertEquals(expectedHash, out.hash()); in testHash_hashesCorrectly()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lz4/
DFramedLZ4CompressorInputStream.java242 int expectedHash = (int) ((contentHash.getValue() >> 8) & 0xff); in readFrameDescriptor() local
244 if (headerHash != expectedHash) { in readFrameDescriptor()
305 long expectedHash = hash.getValue(); in verifyChecksum() local
306 if (expectedHash != ByteUtils.fromLittleEndian(checksum)) { in verifyChecksum()
/external/deqp/modules/internal/
DditImageIOTests.cpp43 …ReadCase (tcu::TestContext& testCtx, const char* name, const char* filename, deUint32 expectedHash) in ImageReadCase() argument
46 , m_expectedHash (expectedHash) in ImageReadCase()
/external/guava/guava-tests/test/com/google/common/io/
DByteSourceTester.java189 HashCode expectedHash = Hashing.md5().hashBytes(expected); in testHash() local
190 assertEquals(expectedHash, source.hash(Hashing.md5())); in testHash()
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DMapInterfaceTest.java222 int expectedHash = in assertInvariants() local
225 assertEquals(expectedHash, entry.hashCode()); in assertInvariants()
226 expectedEntrySetHash += expectedHash; in assertInvariants()
254 int expectedHash = 0; in assertInvariants() local
256 expectedHash += entry.hashCode(); in assertInvariants()
258 assertEquals(expectedHash, map.hashCode()); in assertInvariants()