diff options
author | 2015-02-19 17:09:03 -0800 | |
---|---|---|
committer | 2015-02-20 11:05:44 -0800 | |
commit | 29aa3df3dadeb5829a70652a24b0756e2c9e45ca (patch) | |
tree | 1c5ed3358bd5cef5ae88d05d8700223668ad48da /tests/src/com/android/inputmethod/latin/DictionaryFacilitatorLruCacheTests.java | |
parent | 40b754565ce86247e2ae95e9de6b54b53a35fca8 (diff) | |
download | latinime-29aa3df3dadeb5829a70652a24b0756e2c9e45ca.tar.gz latinime-29aa3df3dadeb5829a70652a24b0756e2c9e45ca.tar.xz latinime-29aa3df3dadeb5829a70652a24b0756e2c9e45ca.zip |
Spell checker uses cache of size 1.
This is a step in the direction of removing the LRU cache completely.
Change-Id: I8886f7ef74e6b1b35135e68f169cb461682964e9
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/DictionaryFacilitatorLruCacheTests.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/DictionaryFacilitatorLruCacheTests.java | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/src/com/android/inputmethod/latin/DictionaryFacilitatorLruCacheTests.java b/tests/src/com/android/inputmethod/latin/DictionaryFacilitatorLruCacheTests.java index 5340b6fa7..4f924abc7 100644 --- a/tests/src/com/android/inputmethod/latin/DictionaryFacilitatorLruCacheTests.java +++ b/tests/src/com/android/inputmethod/latin/DictionaryFacilitatorLruCacheTests.java @@ -23,21 +23,6 @@ import android.test.suitebuilder.annotation.LargeTest; @LargeTest public class DictionaryFacilitatorLruCacheTests extends AndroidTestCase { - public void testCacheSize() { - final DictionaryFacilitatorLruCache cache = - new DictionaryFacilitatorLruCache(getContext(), ""); - - assertEquals(0, cache.getCachedLocalesForTesting().size()); - assertNotNull(cache.get(Locale.US)); - assertEquals(1, cache.getCachedLocalesForTesting().size()); - assertNotNull(cache.get(Locale.UK)); - assertEquals(2, cache.getCachedLocalesForTesting().size()); - assertNotNull(cache.get(Locale.FRENCH)); - assertEquals(2, cache.getCachedLocalesForTesting().size()); - cache.evictAll(); - assertEquals(0, cache.getCachedLocalesForTesting().size()); - } - public void testGetFacilitator() { final DictionaryFacilitatorLruCache cache = new DictionaryFacilitatorLruCache(getContext(), ""); |