mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Speed up Gradle qa task.
This commit is contained in:
committed by
Cody Henthorne
parent
c6d0ef218a
commit
c98fd1a452
@@ -17,14 +17,12 @@ import static org.whispersystems.signalservice.test.LibSignalLibraryUtil.assumeL
|
||||
public class DeviceTransferAuthenticationTest {
|
||||
|
||||
private byte[] certificate;
|
||||
private byte[] badCertificate;
|
||||
|
||||
@Before
|
||||
public void ensureNativeSupported() throws KeyGenerationFailedException {
|
||||
assumeLibSignalSupportedOnOS();
|
||||
|
||||
certificate = SelfSignedIdentity.create().getX509Encoded();
|
||||
badCertificate = SelfSignedIdentity.create().getX509Encoded();
|
||||
certificate = SelfSignedIdentity.create().getX509Encoded();
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -39,9 +37,10 @@ public class DeviceTransferAuthenticationTest {
|
||||
}
|
||||
|
||||
@Test(expected = DeviceTransferAuthenticationException.class)
|
||||
public void testServerCompute_withChangedClientCertificate() throws DeviceTransferAuthenticationException {
|
||||
Client client = new Client(badCertificate);
|
||||
Server server = new Server(certificate, client.getCommitment());
|
||||
public void testServerCompute_withChangedClientCertificate() throws DeviceTransferAuthenticationException, KeyGenerationFailedException {
|
||||
byte[] badCertificate = SelfSignedIdentity.create().getX509Encoded();
|
||||
Client client = new Client(badCertificate);
|
||||
Server server = new Server(certificate, client.getCommitment());
|
||||
|
||||
byte[] clientRandom = client.setServerRandomAndGetClientRandom(server.getRandom());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user