diff options
author | 2015-03-20 00:47:29 +0000 | |
---|---|---|
committer | 2015-03-20 00:47:29 +0000 | |
commit | ab2c93e7f478d2001026ac12a0bb7c20444bcd7e (patch) | |
tree | 4450ed806e0312efdbaa3f4ff1c4966610e359cb /tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java | |
parent | aae90b9f8ec4182a52b68422948530433d2064f0 (diff) | |
parent | 7df95c54fa9edd4a9fc9c267b204640299b7bad6 (diff) | |
download | latinime-ab2c93e7f478d2001026ac12a0bb7c20444bcd7e.tar.gz latinime-ab2c93e7f478d2001026ac12a0bb7c20444bcd7e.tar.xz latinime-ab2c93e7f478d2001026ac12a0bb7c20444bcd7e.zip |
am 7df95c54: Merge "Add prev words context to the SuggestedWordInfo."
* commit '7df95c54fa9edd4a9fc9c267b204640299b7bad6':
Add prev words context to the SuggestedWordInfo.
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java b/tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java index 657cec8d7..d465ce674 100644 --- a/tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java +++ b/tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java @@ -37,7 +37,7 @@ public class SuggestedWordsTests extends AndroidTestCase { private static SuggestedWordInfo createTypedWordInfo(final String word) { // Use 100 as the frequency because the numerical value does not matter as // long as it's > 1 and < INT_MAX. - return new SuggestedWordInfo(word, 100 /* score */, + return new SuggestedWordInfo(word, "" /* prevWordsContext */, 100 /* score */, SuggestedWordInfo.KIND_TYPED, null /* sourceDict */, SuggestedWordInfo.NOT_AN_INDEX /* indexOfTouchPointOfSecondWord */, @@ -52,7 +52,7 @@ public class SuggestedWordsTests extends AndroidTestCase { * @return a new instance of {@link SuggestedWordInfo}. */ private static SuggestedWordInfo createCorrectionWordInfo(final String word) { - return new SuggestedWordInfo(word, 1 /* score */, + return new SuggestedWordInfo(word, "" /* prevWordsContext */, 1 /* score */, SuggestedWordInfo.KIND_CORRECTION, null /* sourceDict */, SuggestedWordInfo.NOT_AN_INDEX /* indexOfTouchPointOfSecondWord */, |