- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for Aa (0.11 sec)
-
okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt
cache.maxSize = 8 taskFaker.runNextTask() set("a", "aa", "aa") set("b", "bb", "bbb") // Cause the cache trim job to fail. filesystem.setFaultyDelete(cacheDir / "a.0", true) taskFaker.runNextTask() // Confirm we still allow snapshot reads after a trim failure. assertValue("a", "aa", "aa") assertValue("b", "bb", "bbb") // Allow the test to clean up.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 14:55:09 GMT 2024 - 75.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
@Test fun partialRangeResponsesDoNotCorruptCache() { // 1. Request a range. // 2. Request a full document, expecting a cache miss. server.enqueue( MockResponse.Builder() .body("AA") .code(HttpURLConnection.HTTP_PARTIAL) .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) .addHeader("Content-Range: bytes 1000-1001/2000") .build(), )
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 108.6K bytes - Viewed (0)