Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Chan (0.12 sec)

  1. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        val afterRemoveFileContents = if (windows) "a1234" else null
    
        set("a", "a1234", "a1234")
        val a = cache.edit("a")!!
        a.setString(0, "a123")
        cache.maxSize = 8 // Smaller than the sum of active edits!
        cache.flush() // Force trimToSize().
        assertThat(cache.size()).isEqualTo(expectedByteCount)
        assertThat(readFileOrNull(getCleanFile("a", 0))).isEqualTo(afterRemoveFileContents)
    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)
  2. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        val framesThatFillWindow =
          roundUp(Settings.DEFAULT_INITIAL_WINDOW_SIZE, peer.maxOutboundDataLength())
    
        // Write the mocking script. This accepts more data frames than necessary!
        peer.sendFrame().settings(Settings())
        peer.acceptFrame() // SETTINGS ACK
        peer.acceptFrame() // SYN_STREAM on stream 1
        for (i in 0 until framesThatFillWindow) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
Back to top