Searched refs:ONE_MINUTE_MILLIS (Results 1 – 1 of 1) sorted by relevance
/frameworks/volley/src/test/java/com/android/volley/toolbox/ |
D | HttpHeaderParserTest.java | 41 private static long ONE_MINUTE_MILLIS = 1000L * 60; field in HttpHeaderParserTest 95 assertEqualsWithin(entry.serverDate, now, ONE_MINUTE_MILLIS); in parseCacheHeaders_normalExpire() 96 assertEqualsWithin(entry.lastModified, (now - ONE_DAY_MILLIS), ONE_MINUTE_MILLIS); in parseCacheHeaders_normalExpire() 110 assertEqualsWithin(entry.serverDate, now, ONE_MINUTE_MILLIS); in parseCacheHeaders_expiresInPast() 125 assertEqualsWithin(now + 3 * ONE_HOUR_MILLIS, entry.ttl, ONE_MINUTE_MILLIS); in parseCacheHeaders_serverRelative() 139 assertEqualsWithin(now + ONE_DAY_MILLIS, entry.ttl, ONE_MINUTE_MILLIS); in parseCacheHeaders_cacheControlOverridesExpires() 157 assertEqualsWithin(now + ONE_DAY_MILLIS, entry.softTtl, ONE_MINUTE_MILLIS); in testParseCacheHeaders_staleWhileRevalidate() 158 assertEqualsWithin(now + ONE_DAY_MILLIS + ONE_WEEK_MILLIS, entry.ttl, ONE_MINUTE_MILLIS); in testParseCacheHeaders_staleWhileRevalidate() 181 assertEqualsWithin(now, entry.ttl, ONE_MINUTE_MILLIS); in parseCacheHeaders_cacheControlMustRevalidateNoMaxAge() 194 assertEqualsWithin(now + ONE_HOUR_MILLIS, entry.ttl, ONE_MINUTE_MILLIS); in parseCacheHeaders_cacheControlMustRevalidateWithMaxAge() [all …]
|