mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Change to lambda
This commit is contained in:
+2
-2
@@ -141,7 +141,7 @@ class DefaultPushServiceTest {
|
||||
pushProviders = setOf(aCurrentPushProvider, aPushProvider),
|
||||
getCurrentPushProvider = FakeGetCurrentPushProvider(currentPushProvider = aCurrentPushProvider.name),
|
||||
userPushStoreFactory = FakeUserPushStoreFactory(
|
||||
userPushStore = userPushStore,
|
||||
userPushStore = { userPushStore },
|
||||
),
|
||||
)
|
||||
val result = defaultPushService.registerWith(client, aPushProvider, aDistributor)
|
||||
@@ -170,7 +170,7 @@ class DefaultPushServiceTest {
|
||||
pushProviders = setOf(aCurrentPushProvider, aPushProvider),
|
||||
getCurrentPushProvider = FakeGetCurrentPushProvider(currentPushProvider = aCurrentPushProvider.name),
|
||||
userPushStoreFactory = FakeUserPushStoreFactory(
|
||||
userPushStore = userPushStore,
|
||||
userPushStore = { userPushStore },
|
||||
),
|
||||
)
|
||||
val result = defaultPushService.registerWith(client, aPushProvider, aDistributor)
|
||||
|
||||
+2
-2
@@ -89,7 +89,7 @@ class DefaultPusherSubscriberTest {
|
||||
getSecretForUserResult = { A_SECRET },
|
||||
),
|
||||
userPushStoreFactory = FakeUserPushStoreFactory(
|
||||
userPushStore = userPushStore,
|
||||
userPushStore = { userPushStore },
|
||||
),
|
||||
)
|
||||
val result = defaultPusherSubscriber.registerPusher(
|
||||
@@ -155,7 +155,7 @@ class DefaultPusherSubscriberTest {
|
||||
getSecretForUserResult = { A_SECRET },
|
||||
),
|
||||
userPushStoreFactory = FakeUserPushStoreFactory(
|
||||
userPushStore = userPushStore,
|
||||
userPushStore = { userPushStore },
|
||||
),
|
||||
)
|
||||
val result = defaultPusherSubscriber.unregisterPusher(
|
||||
|
||||
+1
-1
@@ -257,7 +257,7 @@ class DefaultPushHandlerTest {
|
||||
incrementPushCounterResult()
|
||||
}
|
||||
},
|
||||
userPushStoreFactory = FakeUserPushStoreFactory(userPushStore),
|
||||
userPushStoreFactory = FakeUserPushStoreFactory { userPushStore },
|
||||
pushClientSecret = pushClientSecret,
|
||||
buildMeta = buildMeta,
|
||||
matrixAuthenticationService = matrixAuthenticationService,
|
||||
|
||||
Reference in New Issue
Block a user