summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Fabian Kozynski <kozynski@google.com> 2024-05-13 13:42:51 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-05-13 13:42:51 +0000
commitb464f1531aa0a0bf954e5d335d3d31d677a9c38d (patch)
tree6b74e2472f01592524bb032b6daa50f0cddcc1e3
parent580d50c9a12644459a58964649002c97690af61f (diff)
parent8d5b191d3becc65f4408243ad57fe854a96b2206 (diff)
Merge "Fix Kosmos for NewQSTileFactory (1/2)" into main
-rw-r--r--packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/data/repository/CustomTileRepositoryTest.kt6
-rw-r--r--packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/CustomTileDataInteractorTest.kt12
-rw-r--r--packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/CustomTileInteractorTest.kt6
-rw-r--r--packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/CustomTileMapperTest.kt7
-rw-r--r--packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/CustomTileUserActionInteractorTest.kt8
-rw-r--r--packages/SystemUI/src/com/android/systemui/qs/tiles/base/viewmodel/QSTileViewModelFactory.kt16
-rw-r--r--packages/SystemUI/src/com/android/systemui/qs/tiles/di/NewQSTileFactory.kt10
-rw-r--r--packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/di/NewQSTileFactoryKosmos.kt46
-rw-r--r--packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/custom/CustomTileKosmos.kt14
9 files changed, 82 insertions, 43 deletions
diff --git a/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/data/repository/CustomTileRepositoryTest.kt b/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/data/repository/CustomTileRepositoryTest.kt
index da60c18dcfd7..dfc004a126bd 100644
--- a/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/data/repository/CustomTileRepositoryTest.kt
+++ b/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/data/repository/CustomTileRepositoryTest.kt
@@ -30,10 +30,10 @@ import com.android.systemui.qs.external.TileServiceKey
import com.android.systemui.qs.pipeline.shared.TileSpec
import com.android.systemui.qs.tiles.impl.custom.TileSubject.Companion.assertThat
import com.android.systemui.qs.tiles.impl.custom.commons.copy
+import com.android.systemui.qs.tiles.impl.custom.customTileSpec
import com.android.systemui.qs.tiles.impl.custom.customTileStatePersister
import com.android.systemui.qs.tiles.impl.custom.data.entity.CustomTileDefaults
import com.android.systemui.qs.tiles.impl.custom.packageManagerAdapterFacade
-import com.android.systemui.qs.tiles.impl.custom.tileSpec
import com.google.common.truth.Truth.assertThat
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.first
@@ -47,11 +47,11 @@ import org.junit.runner.RunWith
@OptIn(ExperimentalCoroutinesApi::class)
class CustomTileRepositoryTest : SysuiTestCase() {
- private val kosmos = Kosmos().apply { tileSpec = TileSpec.create(TEST_COMPONENT) }
+ private val kosmos = Kosmos().apply { customTileSpec = TileSpec.create(TEST_COMPONENT) }
private val underTest: CustomTileRepository =
with(kosmos) {
CustomTileRepositoryImpl(
- tileSpec,
+ customTileSpec,
customTileStatePersister,
packageManagerAdapterFacade.packageManagerAdapter,
testScope.testScheduler,
diff --git a/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/CustomTileDataInteractorTest.kt b/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/CustomTileDataInteractorTest.kt
index a5c554406848..a29289a7409a 100644
--- a/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/CustomTileDataInteractorTest.kt
+++ b/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/CustomTileDataInteractorTest.kt
@@ -38,8 +38,8 @@ import com.android.systemui.qs.tiles.impl.custom.customTileInteractor
import com.android.systemui.qs.tiles.impl.custom.customTilePackagesUpdatesRepository
import com.android.systemui.qs.tiles.impl.custom.customTileRepository
import com.android.systemui.qs.tiles.impl.custom.customTileServiceInteractor
+import com.android.systemui.qs.tiles.impl.custom.customTileSpec
import com.android.systemui.qs.tiles.impl.custom.data.entity.CustomTileDefaults
-import com.android.systemui.qs.tiles.impl.custom.tileSpec
import com.android.systemui.testKosmos
import com.android.systemui.user.data.repository.fakeUserRepository
import com.android.systemui.user.data.repository.userRepository
@@ -60,12 +60,12 @@ class CustomTileDataInteractorTest : SysuiTestCase() {
private val kosmos =
testKosmos().apply {
componentName = TEST_COMPONENT
- tileSpec = TileSpec.create(componentName)
+ customTileSpec = TileSpec.create(componentName)
}
private val underTest =
with(kosmos) {
CustomTileDataInteractor(
- tileSpec = tileSpec,
+ tileSpec = customTileSpec,
defaultsRepository = customTileDefaultsRepository,
serviceInteractor = customTileServiceInteractor,
customTileInteractor = customTileInteractor,
@@ -180,7 +180,7 @@ class CustomTileDataInteractorTest : SysuiTestCase() {
setup()
customTileDefaultsRepository.putDefaults(
TEST_USER_1.userHandle,
- tileSpec.componentName,
+ customTileSpec.componentName,
CustomTileDefaults.Result(TEST_TILE.icon, TEST_TILE.label),
)
@@ -198,7 +198,7 @@ class CustomTileDataInteractorTest : SysuiTestCase() {
setup()
customTileDefaultsRepository.putDefaults(
TEST_USER_1.userHandle,
- tileSpec.componentName,
+ customTileSpec.componentName,
CustomTileDefaults.Error,
)
@@ -216,7 +216,7 @@ class CustomTileDataInteractorTest : SysuiTestCase() {
setup()
customTileDefaultsRepository.putDefaults(
TEST_USER_2.userHandle,
- tileSpec.componentName,
+ customTileSpec.componentName,
CustomTileDefaults.Error,
)
diff --git a/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/CustomTileInteractorTest.kt b/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/CustomTileInteractorTest.kt
index 9546a32e2a06..33299d9ce74c 100644
--- a/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/CustomTileInteractorTest.kt
+++ b/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/CustomTileInteractorTest.kt
@@ -31,9 +31,9 @@ import com.android.systemui.qs.pipeline.shared.TileSpec
import com.android.systemui.qs.tiles.impl.custom.TileSubject.Companion.assertThat
import com.android.systemui.qs.tiles.impl.custom.customTileDefaultsRepository
import com.android.systemui.qs.tiles.impl.custom.customTileRepository
+import com.android.systemui.qs.tiles.impl.custom.customTileSpec
import com.android.systemui.qs.tiles.impl.custom.customTileStatePersister
import com.android.systemui.qs.tiles.impl.custom.data.entity.CustomTileDefaults
-import com.android.systemui.qs.tiles.impl.custom.tileSpec
import com.android.systemui.testKosmos
import com.google.common.truth.Truth.assertThat
import kotlinx.coroutines.ExperimentalCoroutinesApi
@@ -50,12 +50,12 @@ import org.junit.runner.RunWith
@OptIn(ExperimentalCoroutinesApi::class)
class CustomTileInteractorTest : SysuiTestCase() {
- private val kosmos = testKosmos().apply { tileSpec = TileSpec.create(TEST_COMPONENT) }
+ private val kosmos = testKosmos().apply { customTileSpec = TileSpec.create(TEST_COMPONENT) }
private val underTest: CustomTileInteractor =
with(kosmos) {
CustomTileInteractor(
- tileSpec = tileSpec,
+ tileSpec = customTileSpec,
defaultsRepository = customTileDefaultsRepository,
customTileRepository = customTileRepository,
tileScope = testScope.backgroundScope,
diff --git a/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/CustomTileMapperTest.kt b/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/CustomTileMapperTest.kt
index a2127a4717ce..3972938d7b1b 100644
--- a/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/CustomTileMapperTest.kt
+++ b/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/CustomTileMapperTest.kt
@@ -33,9 +33,9 @@ import com.android.systemui.kosmos.testScope
import com.android.systemui.qs.pipeline.shared.TileSpec
import com.android.systemui.qs.tiles.impl.custom.QSTileStateSubject.Companion.assertThat
import com.android.systemui.qs.tiles.impl.custom.customTileQsTileConfig
+import com.android.systemui.qs.tiles.impl.custom.customTileSpec
import com.android.systemui.qs.tiles.impl.custom.domain.CustomTileMapper
import com.android.systemui.qs.tiles.impl.custom.domain.entity.CustomTileDataModel
-import com.android.systemui.qs.tiles.impl.custom.tileSpec
import com.android.systemui.qs.tiles.viewmodel.QSTileState
import com.android.systemui.testKosmos
import com.android.systemui.util.mockito.any
@@ -51,7 +51,8 @@ import org.junit.runner.RunWith
class CustomTileMapperTest : SysuiTestCase() {
private val uriGrantsManager: IUriGrantsManager = mock {}
- private val kosmos = testKosmos().apply { tileSpec = TileSpec.Companion.create(TEST_COMPONENT) }
+ private val kosmos =
+ testKosmos().apply { customTileSpec = TileSpec.Companion.create(TEST_COMPONENT) }
private val underTest by lazy {
CustomTileMapper(
context = mock { whenever(createContextAsUser(any(), any())).thenReturn(context) },
@@ -202,7 +203,7 @@ class CustomTileMapperTest : SysuiTestCase() {
) =
CustomTileDataModel(
UserHandle.of(1),
- tileSpec.componentName,
+ customTileSpec.componentName,
Tile().apply {
state = tileState
label = "test label"
diff --git a/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/CustomTileUserActionInteractorTest.kt b/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/CustomTileUserActionInteractorTest.kt
index c709f16c3213..72e5766e409a 100644
--- a/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/CustomTileUserActionInteractorTest.kt
+++ b/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/CustomTileUserActionInteractorTest.kt
@@ -44,9 +44,9 @@ import com.android.systemui.qs.tiles.base.actions.pendingIntentInputs
import com.android.systemui.qs.tiles.base.interactor.QSTileInputTestKtx.click
import com.android.systemui.qs.tiles.base.interactor.QSTileInputTestKtx.longClick
import com.android.systemui.qs.tiles.impl.custom.customTileServiceInteractor
+import com.android.systemui.qs.tiles.impl.custom.customTileSpec
import com.android.systemui.qs.tiles.impl.custom.domain.entity.CustomTileDataModel
import com.android.systemui.qs.tiles.impl.custom.qsTileLogger
-import com.android.systemui.qs.tiles.impl.custom.tileSpec
import com.android.systemui.testKosmos
import com.android.systemui.user.data.repository.fakeUserRepository
import com.android.systemui.util.mockito.any
@@ -68,7 +68,7 @@ class CustomTileUserActionInteractorTest : SysuiTestCase() {
private val kosmos =
testKosmos().apply {
componentName = TEST_COMPONENT
- tileSpec = TileSpec.create(componentName)
+ customTileSpec = TileSpec.create(componentName)
testCase = this@CustomTileUserActionInteractorTest
}
@@ -79,7 +79,7 @@ class CustomTileUserActionInteractorTest : SysuiTestCase() {
mock {
whenever(packageManager).thenReturn(packageManagerFacade.packageManager)
},
- tileSpec = tileSpec,
+ tileSpec = customTileSpec,
qsTileLogger = qsTileLogger,
windowManager = windowManagerFacade.windowManager,
displayTracker = mock {},
@@ -227,7 +227,7 @@ class CustomTileUserActionInteractorTest : SysuiTestCase() {
private fun pendingIntent(): PendingIntent = mock { whenever(isActivity).thenReturn(true) }
private fun Kosmos.customTileModel(
- componentName: ComponentName = tileSpec.componentName,
+ componentName: ComponentName = customTileSpec.componentName,
activityLaunchForClick: PendingIntent? = null,
tileState: Int = 111,
) =
diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/base/viewmodel/QSTileViewModelFactory.kt b/packages/SystemUI/src/com/android/systemui/qs/tiles/base/viewmodel/QSTileViewModelFactory.kt
index ffa3b543736b..4c210804b0c0 100644
--- a/packages/SystemUI/src/com/android/systemui/qs/tiles/base/viewmodel/QSTileViewModelFactory.kt
+++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/base/viewmodel/QSTileViewModelFactory.kt
@@ -25,10 +25,13 @@ import com.android.systemui.qs.tiles.base.interactor.QSTileDataInteractor
import com.android.systemui.qs.tiles.base.interactor.QSTileDataToStateMapper
import com.android.systemui.qs.tiles.base.interactor.QSTileUserActionInteractor
import com.android.systemui.qs.tiles.base.logging.QSTileLogger
+import com.android.systemui.qs.tiles.impl.custom.di.CustomTileComponent
+import com.android.systemui.qs.tiles.impl.custom.di.QSTileConfigModule
+import com.android.systemui.qs.tiles.impl.custom.domain.entity.CustomTileDataModel
import com.android.systemui.qs.tiles.impl.di.QSTileComponent
-import com.android.systemui.qs.tiles.viewmodel.QSTileConfig
import com.android.systemui.qs.tiles.viewmodel.QSTileConfigProvider
import com.android.systemui.qs.tiles.viewmodel.QSTileState
+import com.android.systemui.qs.tiles.viewmodel.QSTileViewModel
import com.android.systemui.user.data.repository.UserRepository
import com.android.systemui.util.time.SystemClock
import javax.inject.Inject
@@ -47,7 +50,7 @@ sealed interface QSTileViewModelFactory<T> {
* binding them together. This achieves a DI scope that lives along the instance of
* [QSTileViewModelImpl].
*/
- class Component<T>
+ class Component
@Inject
constructor(
private val disabledByPolicyInteractor: DisabledByPolicyInteractor,
@@ -58,7 +61,8 @@ sealed interface QSTileViewModelFactory<T> {
private val qsTileConfigProvider: QSTileConfigProvider,
private val systemClock: SystemClock,
@Background private val backgroundDispatcher: CoroutineDispatcher,
- ) : QSTileViewModelFactory<T> {
+ private val customTileComponentBuilder: CustomTileComponent.Builder,
+ ) : QSTileViewModelFactory<CustomTileDataModel> {
/**
* Creates [QSTileViewModelImpl] based on the interactors obtained from [QSTileComponent].
@@ -66,10 +70,10 @@ sealed interface QSTileViewModelFactory<T> {
*/
fun create(
tileSpec: TileSpec,
- componentFactory: (config: QSTileConfig) -> QSTileComponent<T>
- ): QSTileViewModelImpl<T> {
+ ): QSTileViewModel {
val config = qsTileConfigProvider.getConfig(tileSpec.spec)
- val component = componentFactory(config)
+ val component =
+ customTileComponentBuilder.qsTileConfigModule(QSTileConfigModule(config)).build()
return QSTileViewModelImpl(
config,
component::userActionInteractor,
diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/di/NewQSTileFactory.kt b/packages/SystemUI/src/com/android/systemui/qs/tiles/di/NewQSTileFactory.kt
index 5122e1feabfc..f65fdb540527 100644
--- a/packages/SystemUI/src/com/android/systemui/qs/tiles/di/NewQSTileFactory.kt
+++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/di/NewQSTileFactory.kt
@@ -22,9 +22,6 @@ import com.android.systemui.plugins.qs.QSTile
import com.android.systemui.qs.pipeline.shared.QSPipelineFlagsRepository
import com.android.systemui.qs.pipeline.shared.TileSpec
import com.android.systemui.qs.tiles.base.viewmodel.QSTileViewModelFactory
-import com.android.systemui.qs.tiles.impl.custom.di.CustomTileComponent
-import com.android.systemui.qs.tiles.impl.custom.di.QSTileConfigModule
-import com.android.systemui.qs.tiles.impl.custom.domain.entity.CustomTileDataModel
import com.android.systemui.qs.tiles.viewmodel.QSTileConfigProvider
import com.android.systemui.qs.tiles.viewmodel.QSTileViewModel
import com.android.systemui.qs.tiles.viewmodel.QSTileViewModelAdapter
@@ -41,8 +38,7 @@ constructor(
private val adapterFactory: QSTileViewModelAdapter.Factory,
private val tileMap:
Map<String, @JvmSuppressWildcards Provider<@JvmSuppressWildcards QSTileViewModel>>,
- private val customTileComponentBuilder: CustomTileComponent.Builder,
- private val customTileViewModelFactory: QSTileViewModelFactory.Component<CustomTileDataModel>,
+ private val customTileViewModelFactory: QSTileViewModelFactory.Component,
) : QSFactory {
init {
@@ -68,7 +64,5 @@ constructor(
}
private fun createCustomTileViewModel(spec: TileSpec.CustomTileSpec): QSTileViewModel =
- customTileViewModelFactory.create(spec) { config ->
- customTileComponentBuilder.qsTileConfigModule(QSTileConfigModule(config)).build()
- }
+ customTileViewModelFactory.create(spec)
}
diff --git a/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/di/NewQSTileFactoryKosmos.kt b/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/di/NewQSTileFactoryKosmos.kt
index 5c4b39081143..419e7810b604 100644
--- a/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/di/NewQSTileFactoryKosmos.kt
+++ b/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/di/NewQSTileFactoryKosmos.kt
@@ -16,23 +16,63 @@
package com.android.systemui.qs.tiles.di
+import android.os.UserHandle
import com.android.systemui.kosmos.Kosmos
+import com.android.systemui.qs.instanceIdSequenceFake
+import com.android.systemui.qs.pipeline.shared.TileSpec
+import com.android.systemui.qs.tiles.base.viewmodel.QSTileViewModelFactory
+import com.android.systemui.qs.tiles.viewmodel.QSTileConfig
+import com.android.systemui.qs.tiles.viewmodel.QSTileState
+import com.android.systemui.qs.tiles.viewmodel.QSTileUIConfig
+import com.android.systemui.qs.tiles.viewmodel.QSTileUserAction
import com.android.systemui.qs.tiles.viewmodel.QSTileViewModel
import com.android.systemui.qs.tiles.viewmodel.qSTileConfigProvider
import com.android.systemui.qs.tiles.viewmodel.qsTileViewModelAdaperFactory
+import com.android.systemui.util.mockito.any
import com.android.systemui.util.mockito.mock
+import com.android.systemui.util.mockito.whenever
import javax.inject.Provider
-import org.mockito.Mockito
+import kotlinx.coroutines.flow.MutableStateFlow
+import kotlinx.coroutines.flow.SharedFlow
+import kotlinx.coroutines.flow.StateFlow
var Kosmos.newFactoryTileMap by Kosmos.Fixture { emptyMap<String, Provider<QSTileViewModel>>() }
+val Kosmos.customTileViewModelFactory: QSTileViewModelFactory.Component by
+ Kosmos.Fixture {
+ mock {
+ whenever(create(any())).thenAnswer { invocation ->
+ val tileSpec = invocation.getArgument<TileSpec>(0)
+ val config =
+ QSTileConfig(
+ tileSpec,
+ QSTileUIConfig.Empty,
+ instanceIdSequenceFake.newInstanceId(),
+ )
+ object : QSTileViewModel {
+ override val state: SharedFlow<QSTileState> =
+ MutableStateFlow(QSTileState.build({ null }, tileSpec.spec) {})
+ override val config: QSTileConfig = config
+ override val isAvailable: StateFlow<Boolean> = MutableStateFlow(true)
+
+ override fun onUserChanged(user: UserHandle) {}
+
+ override fun forceUpdate() {}
+
+ override fun onActionPerformed(userAction: QSTileUserAction) {}
+
+ override fun destroy() {}
+ }
+ }
+ }
+ }
+
val Kosmos.newQSTileFactory by
Kosmos.Fixture {
NewQSTileFactory(
qSTileConfigProvider,
qsTileViewModelAdaperFactory,
newFactoryTileMap,
- mock(Mockito.withSettings().defaultAnswer(Mockito.RETURNS_MOCKS)),
- mock(Mockito.withSettings().defaultAnswer(Mockito.RETURNS_MOCKS)),
+ customTileViewModelFactory,
)
}
diff --git a/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/custom/CustomTileKosmos.kt b/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/custom/CustomTileKosmos.kt
index 561e2540d465..7b9992dd5d4f 100644
--- a/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/custom/CustomTileKosmos.kt
+++ b/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/custom/CustomTileKosmos.kt
@@ -38,10 +38,10 @@ import com.android.systemui.qs.tiles.viewmodel.QSTileConfigTestBuilder
import com.android.systemui.user.data.repository.userRepository
import com.android.systemui.util.mockito.mock
-var Kosmos.tileSpec: TileSpec.CustomTileSpec by Kosmos.Fixture()
+var Kosmos.customTileSpec: TileSpec.CustomTileSpec by Kosmos.Fixture()
var Kosmos.customTileQsTileConfig: QSTileConfig by
- Kosmos.Fixture { QSTileConfigTestBuilder.build { tileSpec = this@Fixture.tileSpec } }
+ Kosmos.Fixture { QSTileConfigTestBuilder.build { tileSpec = this@Fixture.customTileSpec } }
val Kosmos.qsTileLogger: QSTileLogger by Kosmos.Fixture { mock {} }
val Kosmos.customTileStatePersister: FakeCustomTileStatePersister by
@@ -50,7 +50,7 @@ val Kosmos.customTileStatePersister: FakeCustomTileStatePersister by
val Kosmos.customTileInteractor: CustomTileInteractor by
Kosmos.Fixture {
CustomTileInteractor(
- tileSpec,
+ customTileSpec,
customTileDefaultsRepository,
customTileRepository,
testScope.backgroundScope,
@@ -61,7 +61,7 @@ val Kosmos.customTileInteractor: CustomTileInteractor by
val Kosmos.customTileRepository: FakeCustomTileRepository by
Kosmos.Fixture {
FakeCustomTileRepository(
- tileSpec,
+ customTileSpec,
customTileStatePersister,
packageManagerAdapterFacade,
testScope.testScheduler,
@@ -75,12 +75,12 @@ val Kosmos.customTilePackagesUpdatesRepository: FakeCustomTilePackageUpdatesRepo
Kosmos.Fixture { FakeCustomTilePackageUpdatesRepository() }
val Kosmos.packageManagerAdapterFacade: FakePackageManagerAdapterFacade by
- Kosmos.Fixture { FakePackageManagerAdapterFacade(tileSpec.componentName) }
+ Kosmos.Fixture { FakePackageManagerAdapterFacade(customTileSpec.componentName) }
val Kosmos.customTileServiceInteractor: CustomTileServiceInteractor by
Kosmos.Fixture {
CustomTileServiceInteractor(
- tileSpec,
+ customTileSpec,
activityStarter,
{ customTileUserActionInteractor },
customTileInteractor,
@@ -95,7 +95,7 @@ val Kosmos.customTileUserActionInteractor: CustomTileUserActionInteractor by
Kosmos.Fixture {
CustomTileUserActionInteractor(
testCase.context,
- tileSpec,
+ customTileSpec,
qsTileLogger,
mock {},
mock {},