Home
last modified time | relevance | path

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

/external/guava/guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/testers/
DSetHashCodeTester.java35 int expectedHashCode = 0; in testHashCode() local
37 expectedHashCode += ((element == null) ? 0 : element.hashCode()); in testHashCode()
41 expectedHashCode, getSet().hashCode()); in testHashCode()
48 int expectedHashCode = 0; in testHashCode_containingNull() local
50 expectedHashCode += ((element == null) ? 0 : element.hashCode()); in testHashCode_containingNull()
58 expectedHashCode, getSet().hashCode()); in testHashCode_containingNull()
DListHashCodeTester.java29 int expectedHashCode = 1; in testHashCode() local
31 expectedHashCode = 31 * expectedHashCode + in testHashCode()
36 expectedHashCode, getList().hashCode()); in testHashCode()
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DSetHashCodeTester.java38 int expectedHashCode = 0; in testHashCode() local
40 expectedHashCode += ((element == null) ? 0 : element.hashCode()); in testHashCode()
44 expectedHashCode, getSet().hashCode()); in testHashCode()
51 int expectedHashCode = 0; in testHashCode_containingNull() local
53 expectedHashCode += ((element == null) ? 0 : element.hashCode()); in testHashCode_containingNull()
61 expectedHashCode, getSet().hashCode()); in testHashCode_containingNull()
DMapHashCodeTester.java39 int expectedHashCode = 0; in testHashCode() local
41 expectedHashCode += hash(entry); in testHashCode()
45 expectedHashCode, getMap().hashCode()); in testHashCode()
67 int expectedHashCode = 0; in runEntryWithNullTest() local
69 expectedHashCode += hash(entry); in runEntryWithNullTest()
76 expectedHashCode, getMap().hashCode()); in runEntryWithNullTest()
DListHashCodeTester.java33 int expectedHashCode = 1; in testHashCode() local
35 expectedHashCode = 31 * expectedHashCode + in testHashCode()
40 expectedHashCode, getList().hashCode()); in testHashCode()
/external/guava/guava-tests/test/com/google/common/hash/
DHashCodeTest.java346 private static void assertExpectedHashCode(ExpectedHashCode expectedHashCode, HashCode hash) { in assertExpectedHashCode() argument
347 assertTrue(Arrays.equals(expectedHashCode.bytes, hash.asBytes())); in assertExpectedHashCode()
350 assertTrue(Arrays.equals(expectedHashCode.bytes, bb)); in assertExpectedHashCode()
351 assertEquals(expectedHashCode.asInt, hash.asInt()); in assertExpectedHashCode()
352 if (expectedHashCode.asLong == null) { in assertExpectedHashCode()
358 assertEquals(expectedHashCode.asLong.longValue(), hash.asLong()); in assertExpectedHashCode()
360 assertEquals(expectedHashCode.toString, hash.toString()); in assertExpectedHashCode()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DLiteralByteStringTest.java62 protected int expectedHashCode; field in LiteralByteStringTest
69 expectedHashCode = 331161852; in setUp()
454 assertEquals(classUnderTest + " must have expected hashCode", expectedHashCode, hash); in testHashCode()
462 expectedHashCode, stringUnderTest.peekCachedHashCode()); in testPeekCachedHashCode()
470 expectedHashCode, hash); in testPartialHash()
DBoundedByteStringTest.java58 expectedHashCode = 727575887; in setUp()
DRopeByteStringSubstringTest.java59 expectedHashCode = -1259260680; in setUp()
DRopeByteStringTest.java62 expectedHashCode = -1214197238; in setUp()