aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-08-20 16:11:03 +0900
committerJean Chalard <jchalard@google.com>2013-08-20 19:18:09 +0900
commite8ef09567077211da034a77b457fd5f87e70f6f0 (patch)
tree572a7d7ed5574e5759ccd778eedf076ba5270b22 /tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java
parentef1e363016623ccf409c8c270f2c1e35a67734c9 (diff)
downloadlatinime-e8ef09567077211da034a77b457fd5f87e70f6f0.tar.gz
latinime-e8ef09567077211da034a77b457fd5f87e70f6f0.tar.xz
latinime-e8ef09567077211da034a77b457fd5f87e70f6f0.zip
[AC2] Reference a dict rather than a string in suggestion infos
Bug: 9059617 Change-Id: Ic17bc0fd5d812268fd37d7fd35b4e9ebfb95fa5e
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java')
-rw-r--r--tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java b/tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java
index ef86700a5..a5f3685da 100644
--- a/tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java
+++ b/tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java
@@ -34,10 +34,11 @@ public class SuggestedWordsTests extends AndroidTestCase {
final int NUMBER_OF_ADDED_SUGGESTIONS = 5;
final ArrayList<SuggestedWordInfo> list = CollectionUtils.newArrayList();
list.add(new SuggestedWordInfo(TYPED_WORD, TYPED_WORD_FREQ,
- SuggestedWordInfo.KIND_TYPED, "",
+ SuggestedWordInfo.KIND_TYPED, null /* sourceDict */,
SuggestedWordInfo.NOT_AN_INDEX /* indexOfTouchPointOfSecondWord */));
for (int i = 0; i < NUMBER_OF_ADDED_SUGGESTIONS; ++i) {
- list.add(new SuggestedWordInfo("" + i, 1, SuggestedWordInfo.KIND_CORRECTION, "",
+ list.add(new SuggestedWordInfo("" + i, 1, SuggestedWordInfo.KIND_CORRECTION,
+ null /* sourceDict */,
SuggestedWordInfo.NOT_AN_INDEX /* indexOfTouchPointOfSecondWord */));
}