Browse Source

[Desktop/ImageViewer] Fix test build error (#5035)

support/1.7.0
issamux 5 months ago committed by GitHub
parent
commit
a307ddd9ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 10
      examples/imageviewer/shared/src/desktopTest/kotlin/ImageViewerTest.kt

10
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,7 +23,8 @@ 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) {}
}

Loading…
Cancel
Save