Merge "Fix RecoverableKeyStore unit tests."

This commit is contained in:
TreeHugger Robot
2018-01-19 01:48:10 +00:00
committed by Android (Google) Code Review
3 changed files with 3 additions and 2 deletions

View File

@@ -228,6 +228,7 @@ public class KeySyncTask implements Runnable {
counterId = generateAndStoreCounterId(recoveryAgentUid);
}
}
byte[] vaultParams = KeySyncUtils.packVaultParams(
publicKey,
counterId,

View File

@@ -330,7 +330,7 @@ public class RecoverableKeyStoreManagerTest {
TEST_VAULT_CHALLENGE,
ImmutableList.of());
fail("should have thrown");
} catch (ServiceSpecificException e) {
} catch (UnsupportedOperationException e) {
assertThat(e.getMessage()).startsWith(
"Only a single KeychainProtectionParams is supported");
}

View File

@@ -125,7 +125,7 @@ public class RecoverySessionStorageTest {
storage.remove(TEST_USER_ID, TEST_SESSION_ID);
assertNotNull(storage.get(TEST_USER_ID, TEST_SESSION_ID));
assertNotNull(storage.get(TEST_USER_ID, otherSessionId));
}
@Test