Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 64 for cpovirk (0.06 seconds)

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

        ListenableFuture<String> f =
            new SimpleForwardingListenableFuture<String>(immediateFuture("a")) {};
        verify(!(f instanceof FluentFuture));
        assertThat(FluentFuture.from(f).get()).isEqualTo("a");
        // TODO(cpovirk): Test forwarding more extensively.
      }
    
      public void testAddCallback() {
        FluentFuture<String> f = FluentFuture.from(immediateFuture("a"));
        boolean[] called = new boolean[1];
        f.addCallback(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        final CountDownLatch latch;
    
        TimedLatch(long countdownInMillis) {
          super(countdownInMillis);
          this.latch = new CountDownLatch(1);
          // TODO(cpovirk): automatically fail the test if this thread throws
          new Thread(new CountDown(latch, countdownInMillis)).start();
        }
    
        @Override
        void awaitLatchUninterruptibly() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 38.1K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java

        ListenableFuture<String> f =
            new SimpleForwardingListenableFuture<String>(immediateFuture("a")) {};
        verify(!(f instanceof FluentFuture));
        assertThat(FluentFuture.from(f).get()).isEqualTo("a");
        // TODO(cpovirk): Test forwarding more extensively.
      }
    
      public void testAddCallback() {
        FluentFuture<String> f = FluentFuture.from(immediateFuture("a"));
        boolean[] called = new boolean[1];
        f.addCallback(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

      private static final SecretKey SHA512_KEY =
          new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA512");
    
      // From https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#Mac
      // TODO(cpovirk): Evaluate newer list:
      // https://docs.oracle.com/en/java/javase/25/docs/specs/security/standard-names.html#mac-algorithms
      private static final ImmutableTable<String, SecretKey, HashFunction> ALGORITHMS =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 14.2K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        final CountDownLatch latch;
    
        TimedLatch(long countdownInMillis) {
          super(countdownInMillis);
          this.latch = new CountDownLatch(1);
          // TODO(cpovirk): automatically fail the test if this thread throws
          new Thread(new CountDown(latch, countdownInMillis)).start();
        }
    
        @Override
        void awaitLatchUninterruptibly() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 38.1K bytes
    - Click Count (0)
  6. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

        public static Object bad(@SuppressWarnings("unused") String a) {
          return new BadNulls();
        }
    
        private BadNullsFactory() {}
      }
    
      @AndroidIncompatible // TODO(cpovirk): ClassNotFoundException... ClassSanityTesterTest$AnInterface
      public void testSerializableOnReturnValues_good() throws Exception {
        tester.forAllPublicStaticMethods(GoodSerializableFactory.class).testSerializable();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 36.3K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

    import java.util.concurrent.TimeoutException;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    // TODO(cpovirk): Should this be merged into UninterruptiblesTest?
    /**
     * Unit test for {@link Uninterruptibles#getUninterruptibly}
     *
     * @author Kevin Bourrillion
     * @author Chris Povirk
     */
    @NullUnmarked
    @GwtIncompatible
    @J2ktIncompatible
    public class UninterruptibleFutureTest extends TestCase {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

    import java.util.concurrent.TimeoutException;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    // TODO(cpovirk): Should this be merged into UninterruptiblesTest?
    /**
     * Unit test for {@link Uninterruptibles#getUninterruptibly}
     *
     * @author Kevin Bourrillion
     * @author Chris Povirk
     */
    @NullUnmarked
    @GwtIncompatible
    @J2ktIncompatible
    public class UninterruptibleFutureTest extends TestCase {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

              SpliteratorDecompositionStrategy.ALL_STRATEGIES) {
            List<E> resultsForStrategy = new ArrayList<>();
            strategy.forEach(spliteratorSupplier.get(), resultsForStrategy::add);
    
            // TODO(cpovirk): better failure messages
            if ((characteristics & Spliterator.NONNULL) != 0) {
              assertFalse(resultsForStrategy.contains(null));
            }
            if ((characteristics & Spliterator.SORTED) != 0) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  10. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

              SpliteratorDecompositionStrategy.ALL_STRATEGIES) {
            List<E> resultsForStrategy = new ArrayList<>();
            strategy.forEach(spliteratorSupplier.get(), resultsForStrategy::add);
    
            // TODO(cpovirk): better failure messages
            if ((characteristics & Spliterator.NONNULL) != 0) {
              assertFalse(resultsForStrategy.contains(null));
            }
            if ((characteristics & Spliterator.SORTED) != 0) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 12.1K bytes
    - Click Count (0)
Back to Top