Fix the faulty tests in AttachmentDatabaseTest.java

Fixes #5948
Closes #5952
This commit is contained in:
Niklas Wenzel
2016-12-12 15:05:06 +01:00
committed by Moxie Marlinspike
parent 7b928476a2
commit 770026d4ee
4 changed files with 23 additions and 12 deletions

View File

@@ -357,7 +357,7 @@ public class AttachmentDatabase extends Database {
}
@VisibleForTesting
@Nullable InputStream getDataStream(MasterSecret masterSecret, AttachmentId attachmentId, String dataType)
protected @Nullable InputStream getDataStream(MasterSecret masterSecret, AttachmentId attachmentId, String dataType)
{
File dataFile = getAttachmentDataFile(attachmentId, dataType);
@@ -491,7 +491,7 @@ public class AttachmentDatabase extends Database {
@VisibleForTesting
void updateAttachmentThumbnail(MasterSecret masterSecret, AttachmentId attachmentId, InputStream in, float aspectRatio)
protected void updateAttachmentThumbnail(MasterSecret masterSecret, AttachmentId attachmentId, InputStream in, float aspectRatio)
throws MmsException
{
Log.w(TAG, "updating part thumbnail for #" + attachmentId);