Fix pagination restart issue and cover by unit test.

This commit is contained in:
Benoit Marty
2025-01-23 17:44:31 +01:00
committed by Benoit Marty
parent 4ae773cfd6
commit 31a7d3f3bb
4 changed files with 144 additions and 8 deletions

View File

@@ -11,8 +11,8 @@ import io.element.android.services.toolbox.api.systemclock.SystemClock
const val A_FAKE_TIMESTAMP = 123L
class FakeSystemClock : SystemClock {
override fun epochMillis(): Long {
return A_FAKE_TIMESTAMP
}
class FakeSystemClock(
var epochMillisResult: Long = A_FAKE_TIMESTAMP
) : SystemClock {
override fun epochMillis() = epochMillisResult
}