From 29aa3df3dadeb5829a70652a24b0756e2c9e45ca Mon Sep 17 00:00:00 2001 From: Dan Zivkovic Date: Thu, 19 Feb 2015 17:09:03 -0800 Subject: Spell checker uses cache of size 1. This is a step in the direction of removing the LRU cache completely. Change-Id: I8886f7ef74e6b1b35135e68f169cb461682964e9 --- .../latin/DictionaryFacilitatorLruCacheTests.java | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'tests/src') 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(), ""); -- cgit v1.2.3-83-g751a