summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAustin Wang <wangaustin@google.com>2023-10-20 17:19:03 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2023-10-20 17:19:03 +0000
commit889595c4c482af81f683fa42103fd6aaedc42120 (patch)
treefcd9297d88ea3719c2a097889845bd0caaddcf9a /tests
parentb5128ef7b488cbc56e0665fa2544d28774bae37d (diff)
parent54906b5dc2c987b85f48e29431992211d3b741e6 (diff)
downloadThemePicker-889595c4c482af81f683fa42103fd6aaedc42120.tar.gz
Merge "Make WallpaperModelFactory injectable (2/3)" into main
Diffstat (limited to 'tests')
-rw-r--r--tests/module/src/com/android/customization/TestModule.kt10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/module/src/com/android/customization/TestModule.kt b/tests/module/src/com/android/customization/TestModule.kt
index 79a91c3e..19c42f8b 100644
--- a/tests/module/src/com/android/customization/TestModule.kt
+++ b/tests/module/src/com/android/customization/TestModule.kt
@@ -13,8 +13,10 @@ import com.android.wallpaper.module.logging.TestUserEventLogger
import com.android.wallpaper.module.logging.UserEventLogger
import com.android.wallpaper.testing.TestInjector
import com.android.wallpaper.testing.TestWallpaperPreferences
+import com.android.wallpaper.util.converter.DefaultWallpaperModelFactory
import dagger.Binds
import dagger.Module
+import dagger.Provides
import dagger.hilt.components.SingletonComponent
import dagger.hilt.testing.TestInstallIn
import javax.inject.Singleton
@@ -57,4 +59,12 @@ abstract class TestModule {
abstract fun bindCustomizationPrefs(
impl: TestDefaultCustomizationPreferences
): CustomizationPreferences
+
+ companion object {
+ @Provides
+ @Singleton
+ fun provideDefaultWallpaperModelFactory(): DefaultWallpaperModelFactory {
+ return DefaultWallpaperModelFactory()
+ }
+ }
}