Home
last modified time | relevance | path

Searched refs:ShadowSystemClock (Results 1 – 9 of 9) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowSystemClockTest.java38 assertThat(ShadowSystemClock.now()).isEqualTo(1000); in testSetCurrentTime()
40 assertThat(ShadowSystemClock.now()).isEqualTo(1034); in testSetCurrentTime()
42 assertThat(ShadowSystemClock.now()).isEqualTo(1034); in testSetCurrentTime()
63 ShadowSystemClock.setNanoTime(3141592L); in shouldInterceptSystemTimeCalls()
75 ShadowSystemClock.setNanoTime(123456000000L); in currentNetworkTimeMillis_networkTimeAvailable_shouldReturnCurrentTime()
82 ShadowSystemClock.setNetworkTimeAvailable(false); in currentNetworkTimeMillis_networkTimeNotAvailable_shouldThrowDateTimeException()
DShadowDateUtilsTest.java78 ShadowSystemClock.setCurrentTimeMillis(today); in isToday_shouldReturnFalseForNotToday()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DAndroidInterceptorsIntegrationTest.java17 import org.robolectric.shadows.ShadowSystemClock;
47 ShadowSystemClock.setNanoTime(123456); in systemNanoTime_shouldReturnShadowClockTime()
54 ShadowSystemClock.setNanoTime(TimeUnit.MILLISECONDS.toNanos(54321)); in systemCurrentTimeMillis_shouldReturnShadowClockTime()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowSystemClock.java19 public class ShadowSystemClock { class
109 ShadowSystemClock.nanoTime = nanoTime; in setNanoTime()
DShadowTime.java27 time.set(ShadowSystemClock.currentTimeMillis()); in setToNow()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/
DAndroidInterceptors.java19 import org.robolectric.shadows.ShadowSystemClock;
128 return lookup.findStatic(ShadowSystemClock.class,
131 return lookup.findStatic(ShadowSystemClock.class,
/external/volley/src/test/java/com/android/volley/
DRequestQueueTest.java26 import com.android.volley.mock.ShadowSystemClock;
39 @Config(shadows = {ShadowSystemClock.class})
DRequestQueueIntegrationTest.java29 import com.android.volley.mock.ShadowSystemClock;
49 @Config(shadows = {ShadowSystemClock.class})
/external/volley/src/test/java/com/android/volley/mock/
DShadowSystemClock.java23 public class ShadowSystemClock { class