Fix broken tests.

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2015-07-30 13:03:44 -07:00
parent 68df5f832c
commit 1fa29f89f9
2 changed files with 2 additions and 5 deletions

View File

@ -1,7 +1,5 @@
package org.thoughtcrime.securesms.jobs;
import android.test.AndroidTestCase;
import org.thoughtcrime.securesms.TextSecureTestCase;
import org.thoughtcrime.securesms.crypto.MasterSecret;
import org.thoughtcrime.securesms.dependencies.AxolotlStorageModule;
@ -144,7 +142,7 @@ public class CleanPreKeysJobTest extends TextSecureTestCase {
AxolotlStorageModule.SignedPreKeyStoreFactory provideSignedPreKeyStore() {
return new AxolotlStorageModule.SignedPreKeyStoreFactory() {
@Override
public SignedPreKeyStore create(MasterSecret masterSecret) {
public SignedPreKeyStore create() {
return signedPreKeyStore;
}
};

View File

@ -3,7 +3,6 @@ package org.thoughtcrime.securesms.jobs;
import org.mockito.ArgumentCaptor;
import org.mockito.Mockito;
import org.thoughtcrime.securesms.TextSecureTestCase;
import org.thoughtcrime.securesms.crypto.MasterSecret;
import org.whispersystems.textsecure.api.TextSecureMessageSender;
import org.whispersystems.textsecure.api.push.TextSecureAddress;
import org.whispersystems.textsecure.api.push.exceptions.NotFoundException;
@ -90,7 +89,7 @@ public class DeliveryReceiptJobTest extends TextSecureTestCase {
@Provides TextSecureMessageSenderFactory provideTextSecureMessageSenderFactory() {
return new TextSecureMessageSenderFactory() {
@Override
public TextSecureMessageSender create(MasterSecret masterSecret) {
public TextSecureMessageSender create() {
return textSecureMessageSender;
}
};