aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2014-01-31 08:21:47 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2014-01-31 08:21:47 -0800
commit91f67df440f21e98dc5e3473f0de6e2ce2accde3 (patch)
treed32453377c86c555a8a7612809125d0de1c8b78f /tests
parent95eb29cc89c6f43d993756d655f6fc7235581faa (diff)
parent35ff07c70badbbc25dcc130cc92f043a66da1a00 (diff)
downloadlatinime-91f67df440f21e98dc5e3473f0de6e2ce2accde3.tar.gz
latinime-91f67df440f21e98dc5e3473f0de6e2ce2accde3.tar.xz
latinime-91f67df440f21e98dc5e3473f0de6e2ce2accde3.zip
am 35ff07c7: Merge "Fix BinaryDictDecoderEncoderTests."
* commit '35ff07c70badbbc25dcc130cc92f043a66da1a00': Fix BinaryDictDecoderEncoderTests.
Diffstat (limited to 'tests')
-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);