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

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

Merge "Fix BinaryDictDecoderEncoderTests."

parents c29ab24b 5cb75093
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -108,6 +108,19 @@ public class BinaryDictDecoderEncoderTests extends AndroidTestCase {
        }
    }

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        BinaryDictionary.setCurrentTimeForTest(0);
    }

    @Override
    protected void tearDown() throws Exception {
        super.tearDown();
        // Quit test mode.
        BinaryDictionary.setCurrentTimeForTest(-1);
    }

    private void generateWords(final int number, final Random random) {
        final int[] codePointSet = CodePointUtils.generateCodePointSet(DEFAULT_CODE_POINT_SET_SIZE,
                random);