From 732475dd2498531eaaff3094ebc9ad7f0eea95cb Mon Sep 17 00:00:00 2001 From: Satoshi Kataoka Date: Mon, 29 Jul 2013 14:33:16 +0900 Subject: [PATCH] Fix build Change-Id: Iea21c449c4a2f36f7f6cde28cb295432838862aa --- .../personalization/UserHistoryDictionaryTests.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/src/com/android/inputmethod/latin/personalization/UserHistoryDictionaryTests.java b/tests/src/com/android/inputmethod/latin/personalization/UserHistoryDictionaryTests.java index 48eb08a75..7af83d078 100644 --- a/tests/src/com/android/inputmethod/latin/personalization/UserHistoryDictionaryTests.java +++ b/tests/src/com/android/inputmethod/latin/personalization/UserHistoryDictionaryTests.java @@ -90,8 +90,9 @@ public class UserHistoryDictionaryTests extends AndroidTestCase { final String locale = "testRandomWords"; final String fileName = "UserHistoryDictionary." + locale + ".dict"; dictFile = new File(getContext().getFilesDir(), fileName); - final UserHistoryDictionary dict = UserHistoryDictionary.getInstance(getContext(), - locale, mPrefs); + final UserHistoryDictionary dict = + PersonalizationDictionaryHelper.getUserHistoryDictionary( + getContext(), locale, mPrefs); dict.isTest = true; addToDict(dict, words); @@ -141,8 +142,9 @@ public class UserHistoryDictionaryTests extends AndroidTestCase { for (int i = 0; i < numberOfLanguageSwitching; i++) { final int index = i % numberOfLanguages; // Switch languages to locales[index]. - final UserHistoryDictionary dict = UserHistoryDictionary.getInstance(getContext(), - locales[index], mPrefs); + final UserHistoryDictionary dict = + PersonalizationDictionaryHelper.getUserHistoryDictionary( + getContext(), locales[index], mPrefs); final List words = generateWords( numberOfWordsIntertedForEachLanguageSwitch, random); // Add random words to the user history dictionary.