diff options
author | Makoto Onuki <omakoto@google.com> | 2012-02-17 15:57:08 -0800 |
---|---|---|
committer | Makoto Onuki <omakoto@google.com> | 2012-02-17 16:39:53 -0800 |
commit | 674f943e22077ae399166d5fe8db96dd3d1f7259 (patch) | |
tree | c159e8c72d438d5a4b2abe6d0039b0532d281edb /tests | |
parent | 5acb3e091bc334d4e0f367a36f8d62a0add02b39 (diff) | |
download | packages_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.java | 7 |
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)); |