Add unit test on DefaultLockScreenService

This commit is contained in:
Benoit Marty
2025-10-23 17:12:11 +02:00
parent 7cea6f0f8f
commit 85035da028
3 changed files with 113 additions and 7 deletions
@@ -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) }
}
}