Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for Kissling (0.18 sec)

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

      private val hpackWriter = Hpack.Writer(out = bytesOut)
    
      @ParameterizedTest
      @ArgumentsSource(StoriesTestProvider::class)
      fun testRoundTrip(story: Story) {
        assumeFalse(
          story === Story.MISSING,
          "Test stories missing, checkout git submodule",
        )
    
        val newCases = mutableListOf<Case>()
        for (case in story.cases) {
          hpackWriter.writeHeaders(case.headersList)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2K bytes
    - Viewed (0)
  2. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackDecodeTestBase.kt

         */
        @JvmStatic
        protected fun createStories(interopTests: Array<String>): List<Any> {
          if (interopTests.isEmpty()) return listOf<Any>(Story.MISSING)
    
          val result = mutableListOf<Any>()
          for (interopTestName in interopTests) {
            val stories = HpackJsonUtil.readStories(interopTestName)
            result.addAll(stories)
          }
          return result
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  3. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackDecodeInteropTest.kt

    class HpackDecodeInteropTest : HpackDecodeTestBase() {
      @ParameterizedTest
      @ArgumentsSource(StoriesTestProvider::class)
      fun testGoodDecoderInterop(story: Story) {
        assumeFalse(
          story === Story.MISSING,
          "Test stories missing, checkout git submodule",
        )
        testDecoder(story)
      }
    
      internal class StoriesTestProvider : SimpleProvider() {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  4. native-image-tests/src/main/kotlin/okhttp3/TestRegistration.kt

        provider: String,
      ) {
        val providerClass = access.findClassByName(provider)
        if (providerClass != null) {
          registerTest(access, providerClass)
        } else {
          println("Missing $provider")
        }
      }
    
      private fun registerJupiterClasses(access: Feature.BeforeAnalysisAccess) {
        registerStandardClass(access, "org.junit.jupiter.params.ParameterizedTestExtension")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  5. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/Story.kt

      val cases: List<Case>,
      val fileName: String? = null,
    ) {
      // Used as the test name.
      override fun toString() = fileName ?: "?"
    
      companion object {
        @JvmField
        val MISSING = Story(description = "Missing", cases = listOf(), "missing")
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  6. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/HpackJsonUtil.kt

              result.add(story)
              i++
            }
          } finally {
            storyInputStream.close()
          }
        }
    
        if (result.isEmpty()) {
          // missing files
          result.add(Story.MISSING)
        }
    
        return result
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

            "Expected 'Sec-WebSocket-Accept' header value '$acceptExpected' but was '$headerAccept'",
          )
        }
    
        if (exchange == null) {
          throw ProtocolException("Web Socket exchange missing: bad interceptor?")
        }
      }
    
      fun initReaderAndWriter(
        name: String,
        streams: Streams,
      ) {
        val extensions = this.extensions!!
        synchronized(this) {
          this.name = name
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        // The journal will have no record that 'a' was removed. It will have an entry for 'a', but when
        // it tries to read the cache files, it will find they were deleted. Once it encounters an entry
        // with missing cache files, it should remove it from the cache entirely.
        assertThat(cache.size()).isEqualTo(4)
        assertThat(cache["a"]).isNull()
        assertThat(cache.size()).isEqualTo(2)
      }
    
      @ParameterizedTest
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 75.8K bytes
    - Viewed (0)
  9. native-image-tests/src/main/kotlin/okhttp3/RunTests.kt

      return flatClassnameList
        .mapNotNull {
          try {
            selectClass(Class.forName(it, false, sampleTestClass.classLoader))
          } catch (cnfe: ClassNotFoundException) {
            println("Missing test class: $cnfe")
            null
          }
        }
    }
    
    /**
     * Builds a Junit Test Plan request for a fixed set of classes, or potentially a recursive package.
     */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

        private fun computeCandidate(): CacheStrategy {
          // No cached response.
          if (cacheResponse == null) {
            return CacheStrategy(request, null)
          }
    
          // Drop the cached response if it's missing a required handshake.
          if (request.isHttps && cacheResponse.handshake == null) {
            return CacheStrategy(request, null)
          }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12K bytes
    - Viewed (0)
Back to top