clean up KeychainDatabase a bit

This commit is contained in:
Vincent Breitmoser
2018-06-25 15:11:08 +02:00
parent c8481d0247
commit 4cdc57c690
16 changed files with 45 additions and 118 deletions

View File

@@ -152,7 +152,7 @@ public class AndroidTestHelpers {
public static void cleanupForTests(Context context) throws Exception {
new KeychainDatabase(context).clearDatabase();
KeychainDatabase.getInstance(context).clearDatabase();
// import these two, make sure they're there
importKeysFromResource(context, "x.sec.asc");

View File

@@ -63,7 +63,7 @@ public class EditKeyTest {
public void test01Edit() throws Exception {
Activity activity = mActivity.getActivity();
new KeychainDatabase(activity).clearDatabase();
KeychainDatabase.getInstance(activity).clearDatabase();
// import key for testing, get a stable initial state
importKeysFromResource(activity, "x.sec.asc");