Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testOverflowTimeout (0.13 seconds)

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

      public void testNegativeTimeout() throws Exception {
        future.set(1);
        assertEquals(1, future.get(-1, SECONDS).intValue());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
      public void testOverflowTimeout() throws Exception {
        // First, sanity check that naive multiplication would really overflow to a negative number:
        long nanosPerSecond = NANOSECONDS.convert(1, SECONDS);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 15.4K bytes
    - Click Count (0)
Back to Top