Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 230b343e authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi Committed by Android (Google) Code Review
Browse files

Merge "Quit using try catch in addAndWriteRandomWords."

parents 9997853d 504017e6
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -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;