Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for RecordingCallback (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. okhttp/src/jvmTest/kotlin/okhttp3/RecordingCallback.kt

     */
    package okhttp3
    
    import java.io.IOException
    import java.util.concurrent.TimeUnit
    
    /**
     * Records received HTTP responses so they can be later retrieved by tests.
     */
    class RecordingCallback : Callback {
      private val responses = mutableListOf<RecordedResponse>()
    
      @Synchronized
      override fun onFailure(
        call: Call,
        e: IOException,
      ) {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 2.1K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/DispatcherTest.kt

    @Tag("Slowish")
    class DispatcherTest {
      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
      private val executor = RecordingExecutor(this)
      val callback = RecordingCallback()
      val webSocketListener =
        object : WebSocketListener() {
        }
      val dispatcher = Dispatcher(executor)
      val eventRecorder = EventRecorder()
      var client =
        clientTestRule
          .newClientBuilder()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

      private var client =
        clientTestRule
          .newClientBuilder()
          .eventListenerFactory(clientTestRule.wrap(eventRecorder))
          .build()
      private val callback = RecordingCallback()
      private val cache =
        Cache(
          fileSystem = LoggingFilesystem(fileSystem),
          directory = "/cache".toPath(),
          maxSize = Int.MAX_VALUE.toLong(),
        )
    
      @BeforeEach
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 147.4K bytes
    - Click Count (0)
Back to Top