Give ability to configure the Firebase push gateway.

This commit is contained in:
Benoit Marty 2025-03-12 16:50:12 +01:00
parent a930e9ae6b
commit cd48d051a8
10 changed files with 70 additions and 11 deletions

View file

@ -19,6 +19,7 @@ class FakeEnterpriseService(
private val defaultHomeserverResult: () -> String? = { A_FAKE_HOMESERVER },
private val semanticColorsLightResult: () -> SemanticColors = { lambdaError() },
private val semanticColorsDarkResult: () -> SemanticColors = { lambdaError() },
private val firebasePushGatewayResult: () -> String? = { lambdaError() },
) : EnterpriseService {
override suspend fun isEnterpriseUser(sessionId: SessionId): Boolean = simulateLongTask {
isEnterpriseUserResult(sessionId)
@ -36,6 +37,10 @@ class FakeEnterpriseService(
return semanticColorsDarkResult()
}
override fun firebasePushGateway(): String? {
return firebasePushGatewayResult()
}
companion object {
const val A_FAKE_HOMESERVER = "a_fake_homeserver"
}