Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for makeEvent (0.07 sec)

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

        listener.takeEvent(CallStart::class.java, 0L)
        listener.takeEvent(ConnectionAcquired::class.java, applicationInterceptorDelay)
        listener.takeEvent(RequestHeadersStart::class.java, networkInterceptorDelay)
        listener.takeEvent(RequestHeadersEnd::class.java, 0L)
        listener.takeEvent(RequestBodyStart::class.java, 0L)
        listener.takeEvent(RequestBodyEnd::class.java, requestBodyDelay)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 56.9K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingConnectionListener.kt

       * and returns it.
       */
      fun <T : ConnectionEvent> removeUpToEvent(eventClass: Class<T>): T {
        val fullEventSequence = eventSequence.toList()
        try {
          while (true) {
            val event = takeEvent()
            if (eventClass.isInstance(event)) {
              return eventClass.cast(event)
            }
          }
        } catch (e: NoSuchElementException) {
          throw AssertionError("full event sequence: $fullEventSequence", e)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt

       * and returns it.
       */
      fun <T : CallEvent> removeUpToEvent(eventClass: Class<T>): T {
        val fullEventSequence = eventSequence.toList()
        try {
          while (true) {
            val event = takeEvent()
            if (eventClass.isInstance(event)) {
              return eventClass.cast(event)
            }
          }
        } catch (e: NoSuchElementException) {
          throw AssertionError("full event sequence: $fullEventSequence", e)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        // Verify the peer received what was expected.
        assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_HEADERS)
        assertThat(observer.takeEvent()).isEqualTo(expectedRequestHeaders)
        assertThat(observer.takeEvent()).isEqualTo(expectedResponseHeaders)
      }
    
      @Test fun doublePushPromise() {
        // Write the mocking script.
        peer.sendFrame().settings(Settings())
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 75.4K bytes
    - Viewed (0)
Back to top