Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testFileDescriptorRead (0.13 sec)

  1. okhttp/src/test/java/okhttp3/RequestBodyTest.kt

          val requestBody = fd.toRequestBody()
    
          assertThat(requestBody.contentLength()).isEqualTo(-1L)
          assertThat(requestBody.isOneShot()).isEqualTo(true)
        }
      }
    
      @Test
      fun testFileDescriptorRead() {
        assertOnFileDescriptor(content = "Hello") { fd ->
          val requestBody = fd.toRequestBody()
    
          val buffer = Buffer()
          requestBody.writeTo(buffer)
    Registered: 2024-06-16 04:42
    - Last Modified: 2024-01-08 01:13
    - 3.6K bytes
    - Viewed (0)
Back to top