From df164a58c96b80bfae12e479d06e2e1d138dd91e Mon Sep 17 00:00:00 2001 From: Jake McGinty Date: Fri, 4 Sep 2015 11:19:42 -0700 Subject: [PATCH] remove BitmapUtilTest fixes #4014 // FREEBIE --- .../securesms/util/BitmapUtilTest.java | 34 ------------------- 1 file changed, 34 deletions(-) delete mode 100644 test/androidTest/java/org/thoughtcrime/securesms/util/BitmapUtilTest.java diff --git a/test/androidTest/java/org/thoughtcrime/securesms/util/BitmapUtilTest.java b/test/androidTest/java/org/thoughtcrime/securesms/util/BitmapUtilTest.java deleted file mode 100644 index e190dfc8c5..0000000000 --- a/test/androidTest/java/org/thoughtcrime/securesms/util/BitmapUtilTest.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.thoughtcrime.securesms.util; - -import org.thoughtcrime.securesms.TextSecureTestCase; - -public class BitmapUtilTest extends TextSecureTestCase { - public void testScaleFactorNormal() { - assertEquals(1, BitmapUtil.getScaleFactor(1000, 1000, 9000, 9000, false)); - - assertEquals(1, BitmapUtil.getScaleFactor(1000, 1000, 750, 750, false)); - assertEquals(2, BitmapUtil.getScaleFactor(1000, 1000, 500, 500, false)); - assertEquals(2, BitmapUtil.getScaleFactor(1000, 1000, 499, 499, false)); - assertEquals(4, BitmapUtil.getScaleFactor(1000, 1000, 250, 250, false)); - assertEquals(4, BitmapUtil.getScaleFactor(1000, 1000, 249, 249, false)); - - assertEquals(1, BitmapUtil.getScaleFactor(1000, 500, 750, 750, false)); - assertEquals(1, BitmapUtil.getScaleFactor(2000, 1000, 501, 501, false)); - assertEquals(2, BitmapUtil.getScaleFactor(2000, 1000, 500, 500, false)); - assertEquals(2, BitmapUtil.getScaleFactor(1000, 2000, 499, 499, false)); - } - - public void testScaleFactorConstrained() { - assertEquals(1, BitmapUtil.getScaleFactor(1000, 1000, 9000, 9000, true)); - - assertEquals(2, BitmapUtil.getScaleFactor(1000, 1000, 750, 750, true)); - assertEquals(2, BitmapUtil.getScaleFactor(1000, 1000, 500, 500, true)); - assertEquals(4, BitmapUtil.getScaleFactor(1000, 1000, 499, 499, true)); - assertEquals(4, BitmapUtil.getScaleFactor(1000, 1000, 250, 250, true)); - assertEquals(8, BitmapUtil.getScaleFactor(1000, 1000, 249, 249, true)); - - assertEquals(2, BitmapUtil.getScaleFactor(1000, 500, 750, 750, true)); - assertEquals(4, BitmapUtil.getScaleFactor(2000, 1000, 500, 500, true)); - assertEquals(8, BitmapUtil.getScaleFactor(1000, 2000, 499, 499, true)); - } -}