Add unit test on DefaultLockScreenService

This commit is contained in:
Benoit Marty 2025-10-23 17:12:11 +02:00
parent e427d8851e
commit bc8db88a03
3 changed files with 113 additions and 7 deletions

View file

@ -28,7 +28,7 @@ class FakeSessionObserver : SessionObserver {
listeners.forEach { it.onSessionCreated(userId) }
}
suspend fun onSessionDeleted(userId: String) {
listeners.forEach { it.onSessionDeleted(userId, false) }
suspend fun onSessionDeleted(userId: String, wasLastSession: Boolean = true) {
listeners.forEach { it.onSessionDeleted(userId, wasLastSession = wasLastSession) }
}
}