Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for TestPlatform (0.61 sec)

  1. guava-gwt/test-super/com/google/common/math/super/com/google/common/math/TestPlatform.java

    import com.google.common.annotations.GwtCompatible;
    
    /**
     * @author Chris Povirk
     */
    @GwtCompatible
    final class TestPlatform {
      static boolean intsCanGoOutOfRange() {
        return true;
      }
    
      static boolean isAndroid() {
        return false;
      }
    
      private TestPlatform() {}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 909 bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/TestPlatform.java

    import com.google.common.annotations.GwtCompatible;
    import org.jspecify.annotations.NullUnmarked;
    
    @GwtCompatible
    @NullUnmarked
    final class TestPlatform {
      static int reduceIterationsIfGwt(int iterations) {
        return iterations;
      }
    
      private TestPlatform() {}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 907 bytes
    - Viewed (0)
  3. guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/TestPlatform.java

     */
    
    package com.google.common.primitives;
    
    import com.google.common.annotations.GwtCompatible;
    
    @GwtCompatible
    final class TestPlatform {
      static int reduceIterationsIfGwt(int iterations) {
        return iterations / 10;
      }
    
      private TestPlatform() {}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 852 bytes
    - Viewed (0)
  4. guava-gwt/test-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/TestPlatform.java

    import java.util.concurrent.Future;
    import java.util.concurrent.TimeoutException;
    import org.jspecify.annotations.Nullable;
    
    /** Methods factored out so that they can be emulated differently in GWT. */
    final class TestPlatform {
      static void verifyGetOnPendingFuture(Future<?> future) {
        try {
          future.get();
          fail();
        } catch (Exception e) {
          assertThat(e).isInstanceOf(IllegalStateException.class);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/TestPlatform.java

    /**
     * @author Chris Povirk
     */
    @GwtCompatible
    @NullUnmarked
    final class TestPlatform {
      static boolean intsCanGoOutOfRange() {
        return false;
      }
    
      static boolean isAndroid() {
        return System.getProperty("java.runtime.name", "").contains("Android");
      }
    
      private TestPlatform() {}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/TestPlatform.java

    import java.util.concurrent.TimeoutException;
    import org.jspecify.annotations.Nullable;
    
    /** Methods factored out so that they can be emulated differently in GWT. */
    @GwtCompatible
    final class TestPlatform {
      static void verifyGetOnPendingFuture(Future<?> future) {
        checkNotNull(future);
        try {
          pseudoTimedGetUninterruptibly(future, 10, MILLISECONDS);
          fail();
        } catch (TimeoutException expected) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

    import static com.google.common.util.concurrent.Runnables.doNothing;
    import static com.google.common.util.concurrent.TestPlatform.getDoneFromTimeoutOverload;
    import static com.google.common.util.concurrent.TestPlatform.verifyGetOnPendingFuture;
    import static com.google.common.util.concurrent.TestPlatform.verifyTimedGetOnPendingFuture;
    import static java.util.concurrent.TimeUnit.NANOSECONDS;
    import static java.util.concurrent.TimeUnit.SECONDS;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

    import static com.google.common.util.concurrent.Futures.getDone;
    import static com.google.common.util.concurrent.ReflectionFreeAssertThrows.assertThrows;
    import static com.google.common.util.concurrent.TestPlatform.verifyThreadWasNotInterrupted;
    import static java.util.concurrent.Executors.newFixedThreadPool;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

     * the License.
     */
    
    package com.google.common.primitives;
    
    import static com.google.common.primitives.ReflectionFreeAssertThrows.assertThrows;
    import static com.google.common.primitives.TestPlatform.reduceIterationsIfGwt;
    import static com.google.common.testing.SerializableTester.reserialize;
    import static com.google.common.truth.Truth.assertThat;
    import static java.util.Arrays.stream;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

     * the License.
     */
    
    package com.google.common.primitives;
    
    import static com.google.common.primitives.ReflectionFreeAssertThrows.assertThrows;
    import static com.google.common.primitives.TestPlatform.reduceIterationsIfGwt;
    import static com.google.common.testing.SerializableTester.reserialize;
    import static com.google.common.truth.Truth.assertThat;
    import static java.util.Arrays.stream;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.5K bytes
    - Viewed (0)
Back to top