- Sort Score
- Result 10 results
- Languages All
Results 281 - 290 of 687 for ensurePC (0.08 sec)
-
guava-testlib/test/com/google/common/testing/GcFinalizationTest.java
assertWrapsInterruptedException(expected); } finally { interruptenator.shutdown(); Thread.interrupted(); } } /** * awaitFullGc() is not quite as reliable a way to ensure calling of a specific finalize method as * the more direct await* methods, but should be reliable enough in practice to avoid flakiness of * this test. (And if it isn't, we'd like to know about it first!) */
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Dec 08 17:02:07 UTC 2025 - 7.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateFallbackAtomicHelperTest.java
public void runTest() throws Exception { /* * Note that we do not run this test under Android at the moment. For Android testing, see * AggregateFutureStateDefaultAtomicHelperTest. */ // First, ensure that our classloaders are initializing the correct helper versions: checkHelperVersion(getClass().getClassLoader(), "SafeAtomicHelper"); checkHelperVersion(NO_ATOMIC_FIELD_UPDATER, "SynchronizedAtomicHelper");
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 6.5K bytes - Viewed (0) -
internal/deadlineconn/deadlineconn_test.go
if received != "message one\n" { cerr = fmt.Errorf(`server: expected: "message one\n", got: %v`, received) return } // Set a deadline in the past to indicate we want the next read to fail. // Ensure we don't override it on read. deadlineconn.SetReadDeadline(time.Unix(1, 0)) // Be sure to exceed update interval time.Sleep(updateInterval * 2) _, terr = deadlineconn.Read(b) if terr == nil {Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Nov 11 17:15:17 UTC 2024 - 4.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java
} /** * Wrapper for {@link Map#get(Object)} that forces the caller to pass in a key of the same type as * the map. Besides being slightly shorter than code that uses {@link #getMap()}, it also ensures * that callers don't pass an {@link Entry} by mistake. */ protected V get(K key) { return getMap().get(key); } protected final K k0() { return e0().getKey(); }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Jan 18 02:54:30 UTC 2025 - 7.8K bytes - Viewed (0) -
src/main/java/jcifs/util/ResourceManager.java
import java.util.concurrent.atomic.AtomicLong; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Centralized resource management for preventing resource leaks. * Tracks all AutoCloseable resources and ensures proper cleanup. * * Features: * - Automatic resource cleanup with weak references * - Resource leak detection * - Resource usage monitoring * - Periodic cleanup of abandoned resources
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinDeprecationErrorTest.kt
/** * Access every declaration that is deprecated with [DeprecationLevel.ERROR]. Although new Kotlin * code shouldn't use these, they're necessary for clients migrating from OkHttp 3.x and this test * ensures the symbols remain available and with the expected parameter and return types. */ @Suppress( "DEPRECATION_ERROR", "UNUSED_VALUE", "UNUSED_VARIABLE", "VARIABLE_WITH_REDUNDANT_INITIALIZER", )
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 13.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt
peer.sendFrame().windowUpdate(3, 5) peer.acceptFrame() // DATA STREAM 3 "fghi" peer.play() // Play it back. val connection = connect(peer) connection.writePingAndAwaitPong() // Ensure the SETTINGS have been received. val stream = connection.newStream(headerEntries("a", "android"), true) val sink = stream.sink.buffer() sink.writeUtf8("abcdefghi") sink.flush()
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 75.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java
assertWithMessage("Eviction notifications must be received") .that(removalListener.getCount()) .isEqualTo(10); CacheTesting.expireEntries((LoadingCache<?, ?>) cache, EXPIRING_TIME, ticker); // ensure that no new notifications are sent assertWithMessage("Eviction notifications must be received") .that(removalListener.getCount()) .isEqualTo(10); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 19.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java
import org.junit.jupiter.api.Test; /** * Tests for the Trans2QueryFSInformationResponse class. */ class Trans2QueryFSInformationResponseTest { /** * Tests the constructor to ensure it sets up the command and subcommand correctly. */ @Test void testConstructor() { Trans2QueryFSInformationResponse response =Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.6K bytes - Viewed (0) -
docs/en/docs/advanced/security/http-basic-auth.md
To handle that, we first convert the `username` and `password` to `bytes` encoding them with UTF-8. Then we can use `secrets.compare_digest()` to ensure that `credentials.username` is `"stanleyjobson"`, and that `credentials.password` is `"swordfish"`. {* ../../docs_src/security/tutorial007_an_py39.py hl[1,12:24] *} This would be similar to: ```Python
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 5K bytes - Viewed (0)