Searched refs:cachedResult (Results 1 – 2 of 2) sorted by relevance
68 HashedStringCache.HashResult cachedResult = in testHashedStringNotOriginalString() local70 assertThat(cachedResult.hashedString, is(not(TEST_STRING))); in testHashedStringNotOriginalString()76 HashedStringCache.HashResult cachedResult = in testThatMultipleCallsResultInSameHash() local80 assertThat(cachedResult2.hashedString, is(cachedResult.hashedString)); in testThatMultipleCallsResultInSameHash()87 HashedStringCache.HashResult cachedResult = in testThatMultipleInputResultInDifferentHash() local91 assertThat(cachedResult2.hashedString, is(not(cachedResult.hashedString))); in testThatMultipleInputResultInDifferentHash()97 HashedStringCache.HashResult cachedResult = in testThatZeroDaysResultsInNewHash() local101 assertThat(cachedResult2.hashedString, is(not(cachedResult.hashedString))); in testThatZeroDaysResultsInNewHash()107 HashedStringCache.HashResult cachedResult = in testThatNegativeDaysResultsInNewHash() local111 assertThat(cachedResult2.hashedString, is(not(cachedResult.hashedString))); in testThatNegativeDaysResultsInNewHash()[all …]
397 protected boolean debugCompareQueryResults(Result cachedResult, Result fetchedResult) { in debugCompareQueryResults() argument400 return Objects.equals(cachedResult, fetchedResult); in debugCompareQueryResults()500 final Result cachedResult; in query() local503 cachedResult = mCache.get(query); in query()505 if (cachedResult != null) mHits++; in query()515 cachedResult = null; in query()524 if (cachedResult != null) { in query()525 final Result refreshedResult = refresh(cachedResult, query); in query()526 if (refreshedResult != cachedResult) { in query()556 return maybeCheckConsistency(query, cachedResult); in query()