@@ -52,10 +52,10 @@ class GalleryFragmentIT : AbstractIT() {
5252 fun before () {
5353 activity = testActivityRule.launchActivity(null )
5454
55- createImage(1 , true , 700 , 300 )
56- createImage(2 , true , 500 , 300 )
55+ createImage(10000001 , true , 700 , 300 )
56+ createImage(10000002 , true , 500 , 300 )
5757
58- createImage(7 , true , 300 , 400 )
58+ createImage(10000007 , true , 300 , 400 )
5959 }
6060
6161 @After
@@ -73,14 +73,14 @@ class GalleryFragmentIT : AbstractIT() {
7373 longSleep()
7474 }
7575
76- private fun createImage (int : Int , createPreview : Boolean = true, width : Int? = null, height : Int? = null) {
76+ private fun createImage (id : Int , createPreview : Boolean = true, width : Int? = null, height : Int? = null) {
7777 val defaultSize = ThumbnailsCacheManager .getThumbnailDimension().toFloat()
78- val file = OCFile (" /$int .png" ).apply {
79- fileId = int .toLong()
80- remoteId = " $int "
78+ val file = OCFile (" /$id .png" ).apply {
79+ fileId = id .toLong()
80+ remoteId = " $id "
8181 mimeType = " image/png"
8282 isPreviewAvailable = true
83- modificationTimestamp = (1658475504 + int .toLong()) * 1000
83+ modificationTimestamp = (1658475504 + id .toLong()) * 1000
8484 imageDimension = ImageDimension (width?.toFloat() ? : defaultSize, height?.toFloat() ? : defaultSize)
8585 storageManager.saveFile(this )
8686 }
@@ -116,6 +116,6 @@ class GalleryFragmentIT : AbstractIT() {
116116
117117 assertNotNull(ThumbnailsCacheManager .getBitmapFromDiskCache(PREFIX_RESIZED_IMAGE + file.remoteId))
118118
119- Log_OC .d(" Gallery_thumbnail" , " created $int with ${bitmap.width} x ${bitmap.height} " )
119+ Log_OC .d(" Gallery_thumbnail" , " created $id with ${bitmap.width} x ${bitmap.height} " )
120120 }
121121}
0 commit comments