We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1804776 commit d02f440Copy full SHA for d02f440
firebase-sessions/src/test/kotlin/com/google/firebase/sessions/testing/FakeTimeProvider.kt
@@ -21,7 +21,11 @@ import com.google.firebase.sessions.testing.TestSessionEventData.TEST_SESSION_TI
21
import kotlin.time.Duration
22
import kotlin.time.DurationUnit
23
24
-/** Fake [TimeProvider] that allows programmatically elapsing time forward. */
+/**
25
+ * Fake [TimeProvider] that allows programmatically elapsing time forward.
26
+ *
27
+ * Default [elapsedRealtime] is [Duration.ZERO] until the time is moved using [addInterval].
28
+ */
29
class FakeTimeProvider(private val initialTimeUs: Long = TEST_SESSION_TIMESTAMP_US) : TimeProvider {
30
private var elapsed = Duration.ZERO
31
0 commit comments