diff --git a/briar-android/src/androidTestOfficial/assets/transparent-100x100.png b/briar-android/src/androidTestOfficial/assets/transparent-100x100.png new file mode 100644 index 000000000..deb7ea3dd Binary files /dev/null and b/briar-android/src/androidTestOfficial/assets/transparent-100x100.png differ diff --git a/briar-android/src/androidTestOfficial/java/org/briarproject/briar/android/attachment/AttachmentCreationTaskTest.java b/briar-android/src/androidTestOfficial/java/org/briarproject/briar/android/attachment/AttachmentCreationTaskTest.java index 227dad0d5..59b6ebf0a 100644 --- a/briar-android/src/androidTestOfficial/java/org/briarproject/briar/android/attachment/AttachmentCreationTaskTest.java +++ b/briar-android/src/androidTestOfficial/java/org/briarproject/briar/android/attachment/AttachmentCreationTaskTest.java @@ -3,36 +3,35 @@ package org.briarproject.briar.android.attachment; import org.junit.Test; import org.junit.runner.RunWith; -import java.util.logging.Logger; - import androidx.test.ext.junit.runners.AndroidJUnit4; import static android.os.Build.VERSION.SDK_INT; -import static java.util.logging.Logger.getLogger; import static org.junit.Assume.assumeTrue; @RunWith(AndroidJUnit4.class) public class AttachmentCreationTaskTest extends AbstractAttachmentCreationTaskTest { - private static Logger LOG = - getLogger(AttachmentCreationTaskTest.class.getName()); - @Test - public void testCompress100x100Png() throws Exception { + public void testCompressSmallPng() throws Exception { testCompress("red-100x100.png", "image/png"); } @Test - public void testCompress500x500Png() throws Exception { + public void testCompressMediumPng() throws Exception { testCompress("blue-500x500.png", "image/png"); } @Test - public void testCompress1000x2000Png() throws Exception { + public void testCompressLargePng() throws Exception { testCompress("green-1000x2000.png", "image/png"); } + @Test + public void testCompressTransparentPng() throws Exception { + testCompress("transparent-100x100.png", "image/png"); + } + @Test public void testCompressVeryHighJpg() throws Exception { testCompress("error_high.jpg", "image/jpeg");