am 3e792f61: Minor unit test fixes.

* commit '3e792f61ad702b77cc3c4d6d2887e7475f4ffde6':
  Minor unit test fixes.
main
Dan Zivkovic 2015-03-23 20:38:40 +00:00 committed by Android Git Automerger
commit e775215510
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);