Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for testSave (0.2 sec)

  1. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackDecodeTestBase.kt

      private val hpackReader = Hpack.Reader(bytesIn, 4096)
    
      protected fun testDecoder(story: Story) {
        for (testCase in story.cases) {
          val encoded = testCase.wire ?: continue
          bytesIn.write(encoded)
          hpackReader.readHeaders()
          assertSetEquals(
            "seqno=$testCase.seqno",
            testCase.headersList,
            hpackReader.getAndResetHeaderList(),
          )
        }
      }
    
      companion object {
        /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/SocksProxyTest.kt

        assertThat(response.body.string()).isEqualTo("abc")
        assertThat(socksProxy.connectionCount()).isEqualTo(1)
      }
    
      @Test
      fun checkRemoteDNSResolve() {
        // This testcase will fail if the target is resolved locally instead of through the proxy.
        server.enqueue(MockResponse.Builder().body("abc").build())
        val client =
          clientTestRule.newClientBuilder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/HeadersJvmTest.kt

      }
    
      @Test fun setDate() {
        val expected = Date(1000)
        val headers =
          Headers.Builder()
            .add("testDate", Date(0L))
            .set("testDate", expected)
            .build()
        assertThat(headers["testDate"]).isEqualTo("Thu, 01 Jan 1970 00:00:01 GMT")
        assertThat(headers.getDate("testDate")).isEqualTo(expected)
      }
    
      @Test fun setInstant() {
        val expected = Instant.ofEpochMilli(1000L)
        val headers =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

      private val clientEventsList = mutableListOf<String>()
      private var testClient: OkHttpClient? = null
      private var uncaughtException: Throwable? = null
      private lateinit var testName: String
      private var defaultUncaughtExceptionHandler: Thread.UncaughtExceptionHandler? = null
      private var taskQueuesWereIdle: Boolean = false
      val connectionListener = RecordingConnectionListener()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt

     * limitations under the License.
     */
    package okhttp3.internal.authenticator
    
    import java.net.Authenticator
    import java.net.InetAddress
    import junit.framework.TestCase.assertNull
    import okhttp3.FakeDns
    import okhttp3.Protocol.HTTP_2
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.TestValueFactory
    import okhttp3.internal.RecordingAuthenticator
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
Back to top