mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-24 12:40:24 +00:00
Fix the faulty tests in AttachmentDatabaseTest.java
Fixes #5948 Closes #5952
This commit is contained in:
committed by
Moxie Marlinspike
parent
7b928476a2
commit
770026d4ee
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user