Skip to content

Commit

Permalink
[Desktop/ImageViewer] Fix test build error (#5035)
Browse files Browse the repository at this point in the history
  • Loading branch information
issamux committed Jul 1, 2024
1 parent 22dfb14 commit a307ddd
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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) {}
}
}

Expand Down

0 comments on commit a307ddd

Please sign in to comment.