Merge "Quit using try catch in addAndWriteRandomWords."

This commit is contained in:
Keisuke Kuroyanagi 2014-09-23 10:19:04 +00:00 committed by Android (Google) Code Review
commit 230b343e8c

View file

@ -213,14 +213,10 @@ public class UserHistoryDictionaryTests extends AndroidTestCase {
final int numberOfWords = 1000;
final Random random = new Random(123456);
try {
clearHistory(dict);
addAndWriteRandomWords(dict, numberOfWords, random, true /* checksContents */);
} finally {
checkExistenceAndRemoveDictFile(dict, dictFile);
}
}
public void testStressTestForSwitchingLanguagesAndAddingWords() {
final int numberOfLanguages = 2;