diff options
author | 2014-04-25 04:30:38 +0000 | |
---|---|---|
committer | 2014-04-25 04:30:39 +0000 | |
commit | 3d2a9af20ac78ed29144345f0e95c3baf6d9ed6f (patch) | |
tree | 356846cbd897b9cc5db0883950ecabac2794c6dc /tests/src | |
parent | a933776bf1d4cc7ad86946e05bfa2056c18772b0 (diff) | |
parent | 67c0ed8f8c14f79e61cbd16f841b1b1f3a7466d7 (diff) | |
download | latinime-3d2a9af20ac78ed29144345f0e95c3baf6d9ed6f.tar.gz latinime-3d2a9af20ac78ed29144345f0e95c3baf6d9ed6f.tar.xz latinime-3d2a9af20ac78ed29144345f0e95c3baf6d9ed6f.zip |
Merge "Handle user history dictionary as an ExpandableBinaryDictionary."
Diffstat (limited to 'tests/src')
-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)); } |