diff options
author | Vincent Breitmoser <valodim@mugenguild.com> | 2014-08-14 17:10:08 +0200 |
---|---|---|
committer | Vincent Breitmoser <valodim@mugenguild.com> | 2014-08-14 17:10:40 +0200 |
commit | 9c0388939076c0d15de01941a41ab8428df5c668 (patch) | |
tree | ab0b4d2db162fda33753566cf8f98179acbafab3 /OpenKeychain/src/main/java/org/sufficientlysecure | |
parent | 110f8c4d5287e2603041c6ccc099ba18327d5043 (diff) | |
download | open-keychain-9c0388939076c0d15de01941a41ab8428df5c668.tar.gz open-keychain-9c0388939076c0d15de01941a41ab8428df5c668.tar.bz2 open-keychain-9c0388939076c0d15de01941a41ab8428df5c668.zip |
tests: add ProviderHelperSaveTest, with long key id collision test
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/provider/KeychainDatabase.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/provider/KeychainDatabase.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/provider/KeychainDatabase.java index 3a859f505..a90c88c3e 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/provider/KeychainDatabase.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/provider/KeychainDatabase.java @@ -349,4 +349,9 @@ public class KeychainDatabase extends SQLiteOpenHelper { copy(in, out); } + // for test cases ONLY!! + public void clearDatabase() { + getWritableDatabase().execSQL("delete from " + Tables.KEY_RINGS_PUBLIC); + } + } |