commit | 5cb7509314c48a83288422b750aa456cc6cd55c4 | [log] [tgz] |
---|---|---|
author | Keisuke Kuroyanagi <ksk@google.com> | Fri Jan 31 19:44:17 2014 +0900 |
committer | Keisuke Kuroyanagi <ksk@google.com> | Fri Jan 31 19:44:17 2014 +0900 |
tree | ec5a0a43ce1f2d886463208f4a7acbf034816d10 | |
parent | de76e62b698b5573d2de88f88205dfe7170e2321 [diff] |
Fix BinaryDictDecoderEncoderTests. Bug: 12809791 Change-Id: I04313df78692b01e153a34c932a37f079a924105
diff --git a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java index 8a1ac52..715db2f 100644 --- a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java +++ b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
@@ -108,6 +108,19 @@ } } + @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);