Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 181 - 190 of 306 for preferred (0.05 seconds)

  1. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/DeferredSocketAdapter.kt

     * limitations under the License.
     */
    package okhttp3.internal.platform.android
    
    import javax.net.ssl.SSLSocket
    import okhttp3.Protocol
    
    /**
     * Deferred implementation of SocketAdapter that works by observing the socket
     * and initializing on first use.
     *
     * We use this because eager classpath checks cause confusion and excessive logging in Android,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionSerializationTester.java

      @CollectionFeature.Require(SERIALIZABLE)
      public void testReserialize() {
        // For a bare Collection, the most we can guarantee is that the elements are preserved.
        assertEqualIgnoringOrder(actualContents(), SerializableTester.reserialize(actualContents()));
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 1.7K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb/HandlerTest.java

        @Test
        @DisplayName("parseURL: explicit port is preserved")
        void testParseURL_ExplicitPortPreserved() throws MalformedURLException {
            // Arrange & Act
            Handler handler = newHandler();
            URL url = new URL(null, "smb://server:1234/share", handler);
    
            // Assert
            assertEquals(1234, url.getPort(), "Explicit port should be preserved");
            assertEquals("smb", url.getProtocol());
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  4. scripts/tests/test_translation_fixer/test_complex_doc/data/en_doc.md

    ```Python
    # Some Python code
    ```
    
    ### Triple backticks inside quadruple backticks { #triple-backticks-inside-quadruple-backticks }
    
    Comments inside nested code block will NOT be preserved.
    
    ````
    Here is a code block with quadruple backticks that contains triple backticks inside:
    
    ```python
    # This is a sample Python code block
    def hello_world():
        print("Hello, world!")  # Print greeting
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 08:08:04 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb1/dcerpc/msrpc/samrTest.java

        @Mock
        private rpc.unicode_string mockUnicodeString;
    
        @Mock
        private lsarpc.LsarSidArray mockLsarSidArray;
    
        @BeforeEach
        void setUp() {
            // Directly set the deferred field on the mock
            mockNdrBuffer.deferred = mockDeferredBuffer;
    
            // Configure mocks for NdrBuffer interactions
            lenient().when(mockDeferredBuffer.derive(anyInt())).thenReturn(mockDeferredBuffer);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 33.6K bytes
    - Click Count (0)
  6. src/test/java/jcifs/util/SecureCredentialStorageTest.java

            byte[] encrypted = storage.encryptCredentials(plaintext);
            char[] decrypted = storage.decryptCredentials(encrypted);
    
            assertArrayEquals(plaintext, decrypted, "Unicode should be preserved");
    
            // Clean up
            Arrays.fill(plaintext, '\0');
            Arrays.fill(decrypted, '\0');
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  7. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackDecodeTestBase.kt

          }
          return result
        }
    
        /**
         * Checks if `expected` and `observed` are equal when viewed as a set and headers are
         * deduped.
         *
         * TODO: See if duped headers should be preserved on decode and verify.
         */
        private fun assertSetEquals(
          message: String,
          expected: List<Header>,
          observed: List<Header>,
        ) {
          assertThat(LinkedHashSet(observed), message)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.2K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt

        }.also { expected ->
          assertThat(expected).hasMessage("timeout")
        }
      }
    
      /**
       * This test reproduces a crash where OkHttp attempted to use a deferred connection when the call
       * already had a healthy connection. It sets up a deferred connection by stalling the IPv6
       * connect, and it sets up a same-connection retry with [ErrorCode.REFUSED_STREAM].
       *
       * https://github.com/square/okhttp/pull/7190
       */
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 10.6K bytes
    - Click Count (0)
  9. src/main/java/jcifs/dcerpc/rpc.java

                _dst.enc_ndr_short(this.length);
                _dst.enc_ndr_short(this.maximum_length);
                _dst.enc_ndr_referent(this.buffer, 1);
    
                if (this.buffer != null) {
                    _dst = _dst.deferred;
                    final int _bufferl = this.length / 2;
                    final int _buffers = this.maximum_length / 2;
                    _dst.enc_ndr_long(_buffers);
                    _dst.enc_ndr_long(0);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

      //  - Some providers may choose to also include alias names.
      //  - For example, the "SHA-1" algorithm might be referred to as "SHA1".
      //  - The algorithm name is not case-sensitive.
      @SuppressWarnings("deprecation") // We still need to test our deprecated APIs.
      private static final ImmutableMap<String, HashFunction> ALGORITHMS =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 4.9K bytes
    - Click Count (0)
Back to Top