Minor unit test fixes.

Change-Id: I800bb33a10f31d5b934b00768bc8fe4776e36f90
This commit is contained in:
Dan Zivkovic 2015-03-23 13:31:51 -07:00
parent fa296fa625
commit 3e792f61ad
2 changed files with 0 additions and 6 deletions

View file

@ -44,10 +44,6 @@ public class BinaryDictionaryTests extends AndroidTestCase {
private static final String TEST_LOCALE = "test"; private static final String TEST_LOCALE = "test";
private static final String DICTIONARY_ID = "TestBinaryDictionary"; private static final String DICTIONARY_ID = "TestBinaryDictionary";
private static boolean supportsNgram(final int formatVersion) {
return formatVersion >= FormatSpec.VERSION403;
}
private HashSet<File> mDictFilesToBeDeleted = new HashSet<>(); private HashSet<File> mDictFilesToBeDeleted = new HashSet<>();
@Override @Override

View file

@ -152,8 +152,6 @@ public class InputTestsBase extends ServiceTestCase<LatinIMEForTests> {
super(LatinIMEForTests.class); super(LatinIMEForTests.class);
} }
// TODO: Isn't there a way to make this generic somehow? We can take a <T> and return a <T>
// but we'd have to dispatch types on editor.put...() functions
protected boolean setBooleanPreference(final String key, final boolean value, protected boolean setBooleanPreference(final String key, final boolean value,
final boolean defaultValue) { final boolean defaultValue) {
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mLatinIME); final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mLatinIME);