Fix pagination restart issue and cover by unit test.
This commit is contained in:
parent
ba0502cb7f
commit
da22758ce3
4 changed files with 144 additions and 8 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue