From 24a63b08c0fc3232381c800227961a59d1965811 Mon Sep 17 00:00:00 2001 From: akwizgran Date: Thu, 12 Dec 2019 13:23:14 +0000 Subject: [PATCH] Add transparent PNG. --- .../assets/transparent-100x100.png | Bin 0 -> 219 bytes .../attachment/AttachmentCreationTaskTest.java | 17 ++++++++--------- 2 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 briar-android/src/androidTestOfficial/assets/transparent-100x100.png 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 0000000000000000000000000000000000000000..deb7ea3ddd31a57a4a235c65485fcb54d3359440 GIT binary patch literal 219 zcmeAS@N?(olHy`uVBq!ia0vp^DIm~)y~xPRz`$|X;K2Up z$;}h|4&CzfDwpDJ;NTEoWK>dcU}5Q?E1N+OYVVV3?%!vbkKPd~PX@Y{!PC{xWt~$( F69DIZEv5hf literal 0 HcmV?d00001 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");