mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-25 00:18:51 -05:00
fix test case for new PassphraeCacheInterface
This commit is contained in:
parent
070017b12f
commit
bf9a708e84
@ -264,10 +264,19 @@ public class PgpEncryptDecryptTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getCachedPassphrase(long masterKeyId) throws NoSecretKeyException {
|
public String getCachedPassphrase(long masterKeyId, long subKeyId) throws NoSecretKeyException {
|
||||||
if (mExpectedId != null){
|
if (mExpectedId != null){
|
||||||
Assert.assertEquals("requested passphrase must be for expected id",
|
Assert.assertEquals("requested passphrase must be for expected id",
|
||||||
(long) mExpectedId, masterKeyId);
|
(long) mExpectedId, subKeyId);
|
||||||
|
}
|
||||||
|
return mPassphrase;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getCachedPassphrase(long subKeyId) throws NoSecretKeyException {
|
||||||
|
if (mExpectedId != null){
|
||||||
|
Assert.assertEquals("requested passphrase must be for expected id",
|
||||||
|
(long) mExpectedId, subKeyId);
|
||||||
}
|
}
|
||||||
return mPassphrase;
|
return mPassphrase;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user