From a307ddd9ce25ba831a5e98514c4477f82ae95f06 Mon Sep 17 00:00:00 2001 From: issamux Date: Mon, 1 Jul 2024 06:17:11 -0400 Subject: [PATCH] [Desktop/ImageViewer] Fix test build error (#5035) --- .../shared/src/desktopTest/kotlin/ImageViewerTest.kt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/examples/imageviewer/shared/src/desktopTest/kotlin/ImageViewerTest.kt b/examples/imageviewer/shared/src/desktopTest/kotlin/ImageViewerTest.kt index e0ebfc53b4..c94d9f3800 100644 --- a/examples/imageviewer/shared/src/desktopTest/kotlin/ImageViewerTest.kt +++ b/examples/imageviewer/shared/src/desktopTest/kotlin/ImageViewerTest.kt @@ -1,7 +1,12 @@ import androidx.compose.ui.test.junit4.createComposeRule import androidx.compose.ui.test.onNodeWithTag import androidx.compose.ui.test.performClick -import example.imageviewer.* +import example.imageviewer.Dependencies +import example.imageviewer.DesktopImageStorage +import example.imageviewer.ImageViewerCommon +import example.imageviewer.Notification +import example.imageviewer.PopupNotification +import example.imageviewer.SharePicture import example.imageviewer.filter.PlatformContext import example.imageviewer.model.PictureData import kotlinx.coroutines.CoroutineScope @@ -18,9 +23,10 @@ class ImageViewerTest { override fun showPopUpMessage(text: String) { } } - override val imageStorage: DesktopImageStorage = DesktopImageStorage(pictures, CoroutineScope(Dispatchers.Main)) + override val imageStorage: DesktopImageStorage = + DesktopImageStorage(CoroutineScope(Dispatchers.Main)) override val sharePicture: SharePicture = object : SharePicture { - override fun share(context: PlatformContext, picture: PictureData) { } + override fun share(context: PlatformContext, picture: PictureData) {} } }