aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2014-01-31 10:58:26 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-01-31 10:58:26 +0000
commit35ff07c70badbbc25dcc130cc92f043a66da1a00 (patch)
tree8c85b56f5a21c549c681dbc07fb2b79f815890eb /tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
parentc29ab24b2f7b32bd1e32536a7f39fc2e6ae29749 (diff)
parent5cb7509314c48a83288422b750aa456cc6cd55c4 (diff)
downloadlatinime-35ff07c70badbbc25dcc130cc92f043a66da1a00.tar.gz
latinime-35ff07c70badbbc25dcc130cc92f043a66da1a00.tar.xz
latinime-35ff07c70badbbc25dcc130cc92f043a66da1a00.zip
Merge "Fix BinaryDictDecoderEncoderTests."
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java')
-rw-r--r--tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
index 8a1ac5233..715db2f9b 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 @@ 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);