mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Fix device transfer test dependent on native library.
This commit is contained in:
committed by
Alex Hart
parent
c54c6018b2
commit
90a27d2227
@@ -3,7 +3,6 @@ package org.signal.devicetransfer;
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
import org.signal.devicetransfer.DeviceTransferAuthentication.Client;
|
||||
import org.signal.devicetransfer.DeviceTransferAuthentication.DeviceTransferAuthenticationException;
|
||||
@@ -13,14 +12,17 @@ import java.util.Random;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNotEquals;
|
||||
import static org.whispersystems.signalservice.test.LibSignalLibraryUtil.assumeLibSignalSupportedOnOS;
|
||||
|
||||
public class DeviceTransferAuthenticationTest {
|
||||
|
||||
private static byte[] certificate;
|
||||
private static byte[] badCertificate;
|
||||
private byte[] certificate;
|
||||
private byte[] badCertificate;
|
||||
|
||||
@Before
|
||||
public void ensureNativeSupported() throws KeyGenerationFailedException {
|
||||
assumeLibSignalSupportedOnOS();
|
||||
|
||||
@BeforeClass
|
||||
public static void setup() throws KeyGenerationFailedException {
|
||||
certificate = SelfSignedIdentity.create().getX509Encoded();
|
||||
badCertificate = SelfSignedIdentity.create().getX509Encoded();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user