summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMakoto Onuki <omakoto@google.com>2012-02-17 15:57:08 -0800
committerMakoto Onuki <omakoto@google.com>2012-02-17 16:39:53 -0800
commit674f943e22077ae399166d5fe8db96dd3d1f7259 (patch)
treec159e8c72d438d5a4b2abe6d0039b0532d281edb /tests
parent5acb3e091bc334d4e0f367a36f8d62a0add02b39 (diff)
downloadpackages_providers_ContactsProvider-674f943e22077ae399166d5fe8db96dd3d1f7259.zip
packages_providers_ContactsProvider-674f943e22077ae399166d5fe8db96dd3d1f7259.tar.gz
packages_providers_ContactsProvider-674f943e22077ae399166d5fe8db96dd3d1f7259.tar.bz2
Remove in-memory account cache
Bug 6026073 Change-Id: Ic6057aa2347d1fa4c245ad2f6644ac4d5e8ae3cf
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java b/tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java
index bbfba1e..a9d8a36 100644
--- a/tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java
+++ b/tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java
@@ -87,13 +87,8 @@ public class ContactsDatabaseHelperTest extends BaseContactsProvider2Test {
assertEquals(a1id, mDbHelper.getOrCreateAccountIdInTransaction(AccountWithDataSet.LOCAL));
assertEquals((Long) a1id, mDbHelper.getAccountIdOrNull(AccountWithDataSet.LOCAL));
- // Clear the table, but until we refresh the cache getAccountIdOrNull() keeps returning
- // cached values.
+ // Remove all accounts.
mDbHelper.getWritableDatabase().execSQL("delete from " + Tables.ACCOUNTS);
- assertEquals((Long) a1id, mDbHelper.getAccountIdOrNull(AccountWithDataSet.LOCAL));
-
- // refreshAccountCache() clears the cache.
- mDbHelper.refreshAccountCache();
assertNull(mDbHelper.getAccountIdOrNull(AccountWithDataSet.LOCAL));
assertNull(mDbHelper.getAccountIdOrNull(a1));