diff options
author | 2014-04-24 14:48:01 -0700 | |
---|---|---|
committer | 2014-04-24 14:48:01 -0700 | |
commit | 67c0ed8f8c14f79e61cbd16f841b1b1f3a7466d7 (patch) | |
tree | 2d73d42b4a7ec0187b1955d6868a7d64cdb932a9 /tests/src/com/android/inputmethod/latin/personalization/UserHistoryDictionaryTests.java | |
parent | 978958a41f8e3365643d6b45a9fc36d02c01df44 (diff) | |
download | latinime-67c0ed8f8c14f79e61cbd16f841b1b1f3a7466d7.tar.gz latinime-67c0ed8f8c14f79e61cbd16f841b1b1f3a7466d7.tar.xz latinime-67c0ed8f8c14f79e61cbd16f841b1b1f3a7466d7.zip |
Handle user history dictionary as an ExpandableBinaryDictionary.
Bug: 13755213
Change-Id: I1ea8a6df007af7153852f2d32bf5e8ec669c432b
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/personalization/UserHistoryDictionaryTests.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/personalization/UserHistoryDictionaryTests.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/com/android/inputmethod/latin/personalization/UserHistoryDictionaryTests.java b/tests/src/com/android/inputmethod/latin/personalization/UserHistoryDictionaryTests.java index e054ab68c..4399ba04f 100644 --- a/tests/src/com/android/inputmethod/latin/personalization/UserHistoryDictionaryTests.java +++ b/tests/src/com/android/inputmethod/latin/personalization/UserHistoryDictionaryTests.java @@ -111,7 +111,7 @@ public class UserHistoryDictionaryTests extends AndroidTestCase { private static void addToDict(final UserHistoryDictionary dict, final List<String> words) { String prevWord = null; for (String word : words) { - dict.addToDictionary(prevWord, word, true, + UserHistoryDictionary.addToDictionary(dict, prevWord, word, true, (int)TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis())); prevWord = word; } @@ -262,7 +262,7 @@ public class UserHistoryDictionaryTests extends AndroidTestCase { dict.waitAllTasksForTests(); String prevWord = null; for (final String word : words) { - dict.addToDictionary(prevWord, word, true, mCurrentTime); + UserHistoryDictionary.addToDictionary(dict, prevWord, word, true, mCurrentTime); prevWord = word; assertTrue(dict.isInUnderlyingBinaryDictionaryForTests(word)); } |