kopia lustrzana https://github.com/ryukoposting/Signal-Android
rodzic
58d101ff2e
commit
a95cc0eba2
|
@ -62,7 +62,7 @@ public class JobManagerTest extends AndroidTestCase {
|
|||
}
|
||||
|
||||
public void testEncryptedJobExecuton() throws InterruptedException {
|
||||
EncryptionKeys keys = new EncryptionKeys("foobar");
|
||||
EncryptionKeys keys = new EncryptionKeys(new byte[30]);
|
||||
PersistentMockRequirement requirement = new PersistentMockRequirement();
|
||||
PersistentTestJob testJob = new PersistentTestJob(requirement, keys);
|
||||
JobManager jobManager = new JobManager(getContext(), "persistent-requirement-test4", null, new JavaJobSerializer(getContext()), 1);
|
||||
|
|
|
@ -2,13 +2,13 @@ package org.whispersystems.jobqueue;
|
|||
|
||||
public class EncryptionKeys {
|
||||
|
||||
private transient final String keys;
|
||||
private transient final byte[] encoded;
|
||||
|
||||
public EncryptionKeys(String keys) {
|
||||
this.keys = keys;
|
||||
public EncryptionKeys(byte[] encoded) {
|
||||
this.encoded = encoded;
|
||||
}
|
||||
|
||||
public String getKeys() {
|
||||
return keys;
|
||||
public byte[] getEncoded() {
|
||||
return encoded;
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue