Media: upload audio
This commit is contained in:
parent
3d0e6a4130
commit
e9a34eb46d
6 changed files with 29 additions and 22 deletions
|
|
@ -29,7 +29,7 @@ data class MediaInfo(
|
|||
) : Parcelable
|
||||
|
||||
fun anImageInfo(): MediaInfo = MediaInfo(
|
||||
"an image file.jpg", MimeTypes.Jpeg, "4MB","jpg"
|
||||
"an image file.jpg", MimeTypes.Jpeg, "4MB", "jpg"
|
||||
)
|
||||
|
||||
fun aVideoInfo(): MediaInfo = MediaInfo(
|
||||
|
|
|
|||
|
|
@ -324,7 +324,7 @@ class MessageComposerPresenterTest {
|
|||
Result.success(
|
||||
MediaUploadInfo.Image(
|
||||
file = File("/some/path"),
|
||||
info = ImageInfo(
|
||||
imageInfo = ImageInfo(
|
||||
width = null,
|
||||
height = null,
|
||||
mimetype = null,
|
||||
|
|
@ -357,7 +357,7 @@ class MessageComposerPresenterTest {
|
|||
Result.success(
|
||||
MediaUploadInfo.Video(
|
||||
file = File("/some/path"),
|
||||
info = VideoInfo(
|
||||
videoInfo = VideoInfo(
|
||||
width = null,
|
||||
height = null,
|
||||
mimetype = null,
|
||||
|
|
|
|||
|
|
@ -605,7 +605,7 @@ class RoomDetailsEditPresenterTest {
|
|||
Result.success(
|
||||
MediaUploadInfo.AnyFile(
|
||||
file = processedFile,
|
||||
info = mockk(),
|
||||
fileInfo = mockk(),
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue