Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 124 for mocked (0.18 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        // This should wake up waiter1 and cause the waiter1 node to be removed.
        waiter1.interrupt();
    
        waiter1.join();
        waiter2.awaitWaiting(); // should still be blocked
    
        LockSupport.unpark(waiter2); // spurious wakeup
        waiter2.awaitWaiting(); // should eventually re-park
    
        future.set(null);
        waiter2.join();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 46.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableSet.java

        return new SingletonImmutableSet<>(element);
      }
    
      /*
       * TODO: b/315526394 - Skip the Builder entirely for the of(...) methods, since we don't need to
       * worry that we might trigger the fallback to the JDK-backed implementation? (The varargs one
       * _could_, so we could keep it as it is. Or we could convince ourselves that hash flooding is
       * unlikely in practice there, too.)
       */
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

                    CollectionFeature.KNOWN_ORDER,
                    MapFeature.REJECTS_DUPLICATES_AT_CREATION,
                    CollectionFeature.ALLOWS_NULL_QUERIES)
                .named("ImmutableMap [JDK backed]")
                .createTestSuite());
    
        suite.addTest(
            MapTestSuiteBuilder.using(new ImmutableMapCopyOfGenerator())
                .withFeatures(
                    CollectionSize.ANY,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 27 13:27:08 GMT 2024
    - 41.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/LocalCache.java

         * recency queue. At write-time, or when the queue is full past the threshold, the queue will be
         * drained and the entries therein processed.
         *
         * <p>Note: locked reads should use {@link #recordLockedRead}.
         */
        void recordRead(ReferenceEntry<K, V> entry, long now) {
          if (map.recordsAccess()) {
            entry.setAccessTime(now);
          }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        ReentrantLock lockD = otherFactory.newReentrantLock("LockD");
    
        // lockA -> lockD
        lockA.lock();
        lockD.lock();
        lockA.unlock();
        lockD.unlock();
    
        // lockD -> lockA should fail even though lockD is from a different factory.
        lockD.lock();
        PotentialDeadlockException expected =
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

      private static final long SMALL_TIMEOUT_MILLIS = 10;
    
      /** How long to wait when determining that a thread is blocked if we expect it to be blocked. */
      private static final long EXPECTED_HANG_DELAY_MILLIS = 75;
    
      /**
       * How long to wait when determining that a thread is blocked if we DON'T expect it to be blocked.
       */
      private static final long UNEXPECTED_HANG_DELAY_MILLIS = 10000;
    
      /**
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 27.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/SingletonImmutableMapWithUnhashableValueMapInterfaceTest.java

    import com.google.common.collect.testing.SampleElements.Unhashables;
    import com.google.common.collect.testing.UnhashableObject;
    import java.util.Map;
    
    @GwtIncompatible // GWT's ImmutableMap emulation is backed by java.util.HashMap.
    public class SingletonImmutableMapWithUnhashableValueMapInterfaceTest
        extends RegularImmutableMapWithUnhashableValuesMapInterfaceTest {
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 09 02:18:08 GMT 2022
    - 1.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/RegularImmutableMapWithUnhashableValuesMapInterfaceTest.java

    import com.google.common.collect.testing.SampleElements.Unhashables;
    import com.google.common.collect.testing.UnhashableObject;
    import java.util.Map;
    
    @GwtIncompatible // GWT's ImmutableMap emulation is backed by java.util.HashMap.
    public class RegularImmutableMapWithUnhashableValuesMapInterfaceTest
        extends AbstractImmutableMapMapInterfaceTest<Integer, UnhashableObject> {
      @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Mar 09 02:18:08 GMT 2022
    - 1.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/JdkPattern.java

    package com.google.common.base;
    
    import com.google.common.annotations.GwtIncompatible;
    import java.io.Serializable;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    
    /** A regex pattern implementation which is backed by the {@link Pattern}. */
    @ElementTypesAreNonnullByDefault
    @GwtIncompatible
    final class JdkPattern extends CommonPattern implements Serializable {
      private final Pattern pattern;
    
      JdkPattern(Pattern pattern) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/ForwardingValueGraph.java

     * limitations under the License.
     */
    
    package com.google.common.graph;
    
    import java.util.Set;
    import javax.annotation.CheckForNull;
    
    /**
     * A class to allow {@link ValueGraph} implementations to be backed by a provided delegate. This is
     * not currently planned to be released as a general-purpose forwarding class.
     *
     * @author James Sexton
     * @author Joshua O'Madadhain
     */
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 2.9K bytes
    - Viewed (0)
Back to top