Loading components/feature/accounts-push/src/main/java/mozilla/components/feature/accounts/push/FxaPushSupportFeature.kt +1 −1 Original line number Diff line number Diff line Loading @@ -191,7 +191,7 @@ internal class AutoPushObserver( val rawEvent = message ?: return accountManager.withConstellation { it.processRawEventAsync(String(rawEvent)) processRawEventAsync(String(rawEvent)) } } Loading components/feature/accounts-push/src/test/java/mozilla/components/feature/accounts/push/SendTabFeatureKtTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -49,7 +49,7 @@ class SendTabFeatureKtTest { @Test fun `block is executed only account is available`() { val accountManager: FxaAccountManager = mock() val block: (DeviceConstellation) -> Unit = mock() val block: DeviceConstellation.() -> Unit = mock() val account: OAuthAccount = mock() val constellation: DeviceConstellation = mock() Loading components/feature/syncedtabs/src/main/java/mozilla/components/feature/syncedtabs/SyncedTabsFeature.kt +2 −2 Original line number Diff line number Diff line Loading @@ -76,8 +76,8 @@ class SyncedTabsFeature( */ @VisibleForTesting internal fun syncClients(): List<Device>? { accountManager.withConstellation { constellation -> return constellation.state()?.otherDevices accountManager.withConstellation { return state()?.otherDevices } return null } Loading components/service/firefox-accounts/src/main/java/mozilla/components/service/fxa/manager/ext/FxaAccountManager.kt +1 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ import mozilla.components.service.fxa.manager.FxaAccountManager /** * Executes [block] and provides the [DeviceConstellation] of an [OAuthAccount] if present. */ inline fun FxaAccountManager.withConstellation(block: (DeviceConstellation) -> Unit) { inline fun FxaAccountManager.withConstellation(block: DeviceConstellation.() -> Unit) { authenticatedAccount()?.let { block(it.deviceConstellation()) } Loading components/service/firefox-accounts/src/test/java/mozilla/components/service/fxa/manager/ext/FxaAccountManagerKtTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ class FxaAccountManagerKtTest { @Test fun `block is executed only account is available`() { val accountManager: FxaAccountManager = mock() val block: (DeviceConstellation) -> Unit = mock() val block: DeviceConstellation.() -> Unit = mock() val account: OAuthAccount = mock() val constellation: DeviceConstellation = mock() Loading Loading
components/feature/accounts-push/src/main/java/mozilla/components/feature/accounts/push/FxaPushSupportFeature.kt +1 −1 Original line number Diff line number Diff line Loading @@ -191,7 +191,7 @@ internal class AutoPushObserver( val rawEvent = message ?: return accountManager.withConstellation { it.processRawEventAsync(String(rawEvent)) processRawEventAsync(String(rawEvent)) } } Loading
components/feature/accounts-push/src/test/java/mozilla/components/feature/accounts/push/SendTabFeatureKtTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -49,7 +49,7 @@ class SendTabFeatureKtTest { @Test fun `block is executed only account is available`() { val accountManager: FxaAccountManager = mock() val block: (DeviceConstellation) -> Unit = mock() val block: DeviceConstellation.() -> Unit = mock() val account: OAuthAccount = mock() val constellation: DeviceConstellation = mock() Loading
components/feature/syncedtabs/src/main/java/mozilla/components/feature/syncedtabs/SyncedTabsFeature.kt +2 −2 Original line number Diff line number Diff line Loading @@ -76,8 +76,8 @@ class SyncedTabsFeature( */ @VisibleForTesting internal fun syncClients(): List<Device>? { accountManager.withConstellation { constellation -> return constellation.state()?.otherDevices accountManager.withConstellation { return state()?.otherDevices } return null } Loading
components/service/firefox-accounts/src/main/java/mozilla/components/service/fxa/manager/ext/FxaAccountManager.kt +1 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ import mozilla.components.service.fxa.manager.FxaAccountManager /** * Executes [block] and provides the [DeviceConstellation] of an [OAuthAccount] if present. */ inline fun FxaAccountManager.withConstellation(block: (DeviceConstellation) -> Unit) { inline fun FxaAccountManager.withConstellation(block: DeviceConstellation.() -> Unit) { authenticatedAccount()?.let { block(it.deviceConstellation()) } Loading
components/service/firefox-accounts/src/test/java/mozilla/components/service/fxa/manager/ext/FxaAccountManagerKtTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ class FxaAccountManagerKtTest { @Test fun `block is executed only account is available`() { val accountManager: FxaAccountManager = mock() val block: (DeviceConstellation) -> Unit = mock() val block: DeviceConstellation.() -> Unit = mock() val account: OAuthAccount = mock() val constellation: DeviceConstellation = mock() Loading