From 2dded4888ed9b988bddb736fa3205edaa212aafc Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Wed, 19 Nov 2014 14:45:12 -0800 Subject: [PATCH] No more push encoding pretense. // FREEBIE --- .../push/PushTransportDetailsTest.java | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/libtextsecure/src/androidTest/java/org/whispersystems/textsecure/push/PushTransportDetailsTest.java b/libtextsecure/src/androidTest/java/org/whispersystems/textsecure/push/PushTransportDetailsTest.java index 8f58ba8c6b..4d6c5ab32d 100644 --- a/libtextsecure/src/androidTest/java/org/whispersystems/textsecure/push/PushTransportDetailsTest.java +++ b/libtextsecure/src/androidTest/java/org/whispersystems/textsecure/push/PushTransportDetailsTest.java @@ -4,10 +4,6 @@ import android.test.AndroidTestCase; import org.whispersystems.textsecure.internal.push.PushTransportDetails; -import java.security.NoSuchAlgorithmException; -import java.security.SecureRandom; -import java.util.Arrays; - public class PushTransportDetailsTest extends AndroidTestCase { private final PushTransportDetails transportV2 = new PushTransportDetails(2); @@ -36,23 +32,4 @@ public class PushTransportDetailsTest extends AndroidTestCase { assertTrue(transportV2.getPaddedMessageBody(message).length == message.length); } } - - public void testV3Encoding() throws NoSuchAlgorithmException { - byte[] message = new byte[501]; - SecureRandom.getInstance("SHA1PRNG").nextBytes(message); - - byte[] padded = transportV3.getEncodedMessage(message); - - assertTrue(Arrays.equals(padded, message)); - } - - public void testV2Encoding() throws NoSuchAlgorithmException { - byte[] message = new byte[501]; - SecureRandom.getInstance("SHA1PRNG").nextBytes(message); - - byte[] padded = transportV2.getEncodedMessage(message); - - assertTrue(Arrays.equals(padded, message)); - } - }