Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 38 for awkward (0.19 seconds)

  1. android-test/src/test/kotlin/okhttp/android/test/RobolectricOkHttpClientTest.kt

    @RunWith(RobolectricTestRunner::class)
    @Config(
      sdk = [23, 26, 30, 33, 35],
    )
    class RobolectricOkHttpClientTest : BaseOkHttpClientUnitTest() {
      @Before
      fun setContext() {
        // This is awkward because Robolectric won't run our initializers and we don't want test deps
        // https://github.com/robolectric/robolectric/issues/8461
        OkHttp.initialize(ApplicationProvider.getApplicationContext())
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Aug 30 16:25:39 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/FormBody.kt

      }
    
      /**
       * Either writes this request to [sink] or measures its content length. We have one method
       * do double-duty to make sure the counting and content are consistent, particularly when it comes
       * to awkward operations like measuring the encoded length of header strings, or the
       * length-in-digits of an encoded integer.
       */
      private fun writeOrCountBytes(
        sink: BufferedSink?,
        countBytes: Boolean,
      ): Long {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb1/netbios/NodeStatusResponse.java

        private final NbtAddress queryAddress;
    
        private int numberOfNames;
        private final byte[] macAddress;
        private byte[] stats;
    
        NbtAddress[] addressArray;
    
        /* It is a little awkward but prudent to pass the quering address
         * so that it may be included in the list of results. IOW we do
         * not want to create a new NbtAddress object for this particular
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  4. src/main/java/jcifs/netbios/NodeStatusResponse.java

        private final NbtAddress queryAddress;
    
        private int numberOfNames;
        private final byte[] macAddress;
        private byte[] stats;
    
        NbtAddress[] addressArray;
    
        /*
         * It is a little awkward but prudent to pass the quering address
         * so that it may be included in the list of results. IOW we do
         * not want to create a new NbtAddress object for this particular
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/HttpHeaders.kt

    import okio.Buffer
    import okio.ByteString.Companion.encodeUtf8
    
    private val QUOTED_STRING_DELIMITERS = "\"\\".encodeUtf8()
    private val TOKEN_DELIMITERS = "\t ,=".encodeUtf8()
    
    /**
     * Parse RFC 7235 challenges. This is awkward because we need to look ahead to know how to
     * interpret a token.
     *
     * For example, the first line has a parameter name/value pair and the second line has a single
     * token68:
     *
     * ```
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  6. mockwebserver/README.md

    Because it exercises your full HTTP stack, you can be confident that you're
    testing everything. You can even copy & paste HTTP responses from your real web
    server to create representative test cases. Or test that your code survives in
    awkward-to-reproduce situations like 500 errors or slow-loading responses.
    
    
    ### Example
    
    Use MockWebServer the same way that you use mocking frameworks like
    [Mockito](https://github.com/mockito/mockito):
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Oct 30 21:39:59 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java

        assertEquals(pair.forward, copy.forward);
        assertEquals(pair.backward, copy.backward);
        assertSame(copy.backward, copy.forward.inverse());
        assertSame(copy.forward, copy.backward.inverse());
      }
    
      private static final class BiMapPair<K, V> implements Serializable {
        final BiMap<K, V> forward;
        final BiMap<V, K> backward;
    
        BiMapPair(BiMap<K, V> original) {
          this.forward = original;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java

        assertEquals(pair.forward, copy.forward);
        assertEquals(pair.backward, copy.backward);
        assertSame(copy.backward, copy.forward.inverse());
        assertSame(copy.forward, copy.backward.inverse());
      }
    
      private static final class BiMapPair<K, V> implements Serializable {
        final BiMap<K, V> forward;
        final BiMap<V, K> backward;
    
        BiMapPair(BiMap<K, V> original) {
          this.forward = original;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  9. compat/maven-compat/pom.xml

        </dependency>
    
        <dependency>
          <groupId>javax.inject</groupId>
          <artifactId>javax.inject</artifactId>
          <!-- only for backward compatibility otherwhise would be provided -->
          <scope>compile</scope>
        </dependency>
        <dependency>
          <!-- only for backward compatibility -->
          <groupId>aopalliance</groupId>
          <artifactId>aopalliance</artifactId>
          <version>1.0</version>
        </dependency>
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Dec 16 13:41:14 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/base/ConverterTest.java

      }
    
      public void testFrom() {
        Function<String, Integer> forward = Integer::parseInt;
        Function<Object, String> backward = toStringFunction();
    
        Converter<String, Number> converter = Converter.<String, Number>from(forward, backward);
    
        assertThat(converter.convert(null)).isNull();
        assertThat(converter.reverse().convert(null)).isNull();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 8.3K bytes
    - Click Count (0)
Back to Top