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 …]
306 protected boolean debugCompareQueryResults(Result cachedResult, Result fetchedResult) { in debugCompareQueryResults() argument309 return Objects.equals(cachedResult, fetchedResult); in debugCompareQueryResults()376 final Result cachedResult; in query() local379 cachedResult = mCache.get(query); in query()381 if (cachedResult != null) mHits++; in query()391 cachedResult = null; in query()400 if (cachedResult != null) { in query()401 final Result refreshedResult = refresh(cachedResult, query); in query()402 if (refreshedResult != cachedResult) { in query()432 return maybeCheckConsistency(query, cachedResult); in query()