- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 24 for TestPlatform (0.23 seconds)
-
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() {}Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Aug 10 19:54:19 GMT 2025 - 909 bytes - Click Count (0) -
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() {}Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Aug 10 19:54:19 GMT 2025 - 852 bytes - Click Count (0) -
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() {}Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Aug 10 19:54:19 GMT 2025 - 907 bytes - Click Count (0) -
android/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) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.7K bytes - Click Count (0) -
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() {}Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Aug 10 19:54:19 GMT 2025 - 1K bytes - Click Count (0) -
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);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 2.3K bytes - Click Count (0) -
android/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() {}Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Aug 10 19:54:19 GMT 2025 - 907 bytes - Click Count (0) -
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() {}Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Aug 10 19:54:19 GMT 2025 - 1K bytes - Click Count (0) -
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) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.7K bytes - Click Count (0) -
android-test/src/androidDeviceTest/java/okhttp/android/test/OkHttpTest.kt
@BeforeEach fun setup() { // Needed because of Platform.resetForTests PlatformRegistry.applicationContext = ApplicationProvider.getApplicationContext<Context>() } @Test fun testPlatform() { assertTrue(Platform.isAndroid) if (Build.VERSION.SDK_INT >= 29) { assertTrue(Platform.get() is Android10Platform) } else { assertTrue(Platform.get() is AndroidPlatform) }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 29.9K bytes - Click Count (0)