aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDan Zivkovic <zivkovic@google.com>2015-02-20 19:06:47 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-02-20 19:06:48 +0000
commitfe3c4ef9401d7cdcf07498d97820980fa90528fb (patch)
tree4451c7491dafef7ff2b944bf2ea3411e39ac129e /tests
parent01b023730ee3d86d60016c21915608376c724442 (diff)
parent29aa3df3dadeb5829a70652a24b0756e2c9e45ca (diff)
downloadlatinime-fe3c4ef9401d7cdcf07498d97820980fa90528fb.tar.gz
latinime-fe3c4ef9401d7cdcf07498d97820980fa90528fb.tar.xz
latinime-fe3c4ef9401d7cdcf07498d97820980fa90528fb.zip
Merge "Spell checker uses cache of size 1."
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/inputmethod/latin/DictionaryFacilitatorLruCacheTests.java15
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(), "");