Refactor "parts" to contain MMS/PDU madness to MMS code paths.

Closes #4248
// FREEBIE
This commit is contained in:
Moxie Marlinspike
2015-10-12 18:25:05 -07:00
parent 84fa2d1a34
commit 09e52834a6
67 changed files with 2160 additions and 2083 deletions

View File

@@ -5,7 +5,7 @@ import android.content.Context;
import org.junit.Before;
import org.junit.Test;
import org.thoughtcrime.securesms.BaseUnitTest;
import org.thoughtcrime.securesms.database.PartDatabase.PartId;
import org.thoughtcrime.securesms.database.AttachmentDatabase.AttachmentId;
import org.thoughtcrime.securesms.jobs.AttachmentDownloadJob.InvalidPartException;
import org.thoughtcrime.securesms.util.Util;
@@ -20,7 +20,7 @@ public class AttachmentDownloadJobTest extends BaseUnitTest {
@Override
public void setUp() throws Exception {
super.setUp();
job = new AttachmentDownloadJob(mock(Context.class), 1L, new PartId(1L, 1L));
job = new AttachmentDownloadJob(mock(Context.class), 1L, new AttachmentId(1L, 1L));
}
@Test(expected = InvalidPartException.class)