mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 12:05:22 +00:00
Fix broken tests.
// FREEBIE
This commit is contained in:
parent
68df5f832c
commit
1fa29f89f9
@ -1,7 +1,5 @@
|
|||||||
package org.thoughtcrime.securesms.jobs;
|
package org.thoughtcrime.securesms.jobs;
|
||||||
|
|
||||||
import android.test.AndroidTestCase;
|
|
||||||
|
|
||||||
import org.thoughtcrime.securesms.TextSecureTestCase;
|
import org.thoughtcrime.securesms.TextSecureTestCase;
|
||||||
import org.thoughtcrime.securesms.crypto.MasterSecret;
|
import org.thoughtcrime.securesms.crypto.MasterSecret;
|
||||||
import org.thoughtcrime.securesms.dependencies.AxolotlStorageModule;
|
import org.thoughtcrime.securesms.dependencies.AxolotlStorageModule;
|
||||||
@ -144,7 +142,7 @@ public class CleanPreKeysJobTest extends TextSecureTestCase {
|
|||||||
AxolotlStorageModule.SignedPreKeyStoreFactory provideSignedPreKeyStore() {
|
AxolotlStorageModule.SignedPreKeyStoreFactory provideSignedPreKeyStore() {
|
||||||
return new AxolotlStorageModule.SignedPreKeyStoreFactory() {
|
return new AxolotlStorageModule.SignedPreKeyStoreFactory() {
|
||||||
@Override
|
@Override
|
||||||
public SignedPreKeyStore create(MasterSecret masterSecret) {
|
public SignedPreKeyStore create() {
|
||||||
return signedPreKeyStore;
|
return signedPreKeyStore;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -3,7 +3,6 @@ package org.thoughtcrime.securesms.jobs;
|
|||||||
import org.mockito.ArgumentCaptor;
|
import org.mockito.ArgumentCaptor;
|
||||||
import org.mockito.Mockito;
|
import org.mockito.Mockito;
|
||||||
import org.thoughtcrime.securesms.TextSecureTestCase;
|
import org.thoughtcrime.securesms.TextSecureTestCase;
|
||||||
import org.thoughtcrime.securesms.crypto.MasterSecret;
|
|
||||||
import org.whispersystems.textsecure.api.TextSecureMessageSender;
|
import org.whispersystems.textsecure.api.TextSecureMessageSender;
|
||||||
import org.whispersystems.textsecure.api.push.TextSecureAddress;
|
import org.whispersystems.textsecure.api.push.TextSecureAddress;
|
||||||
import org.whispersystems.textsecure.api.push.exceptions.NotFoundException;
|
import org.whispersystems.textsecure.api.push.exceptions.NotFoundException;
|
||||||
@ -90,7 +89,7 @@ public class DeliveryReceiptJobTest extends TextSecureTestCase {
|
|||||||
@Provides TextSecureMessageSenderFactory provideTextSecureMessageSenderFactory() {
|
@Provides TextSecureMessageSenderFactory provideTextSecureMessageSenderFactory() {
|
||||||
return new TextSecureMessageSenderFactory() {
|
return new TextSecureMessageSenderFactory() {
|
||||||
@Override
|
@Override
|
||||||
public TextSecureMessageSender create(MasterSecret masterSecret) {
|
public TextSecureMessageSender create() {
|
||||||
return textSecureMessageSender;
|
return textSecureMessageSender;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user