aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2014-10-03 12:04:04 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-10-03 12:04:05 +0000
commit3a41528cbe4dbca8781b63457e49c78a78285338 (patch)
tree3e2be7dda60aa1863ca851c2944a2cde9b5b2a72 /tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
parent73edc1eed96d6a5c0c9bce06e1413c3e32ec83e2 (diff)
parent6164f1fcb90396493f3220c83e9efb1889c90ca8 (diff)
downloadlatinime-3a41528cbe4dbca8781b63457e49c78a78285338.tar.gz
latinime-3a41528cbe4dbca8781b63457e49c78a78285338.tar.xz
latinime-3a41528cbe4dbca8781b63457e49c78a78285338.zip
Merge "Fix testCharacterTableIsPresent to use BinaryDictUtils.getDictFile"
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java')
-rw-r--r--tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
index a3e36ee69..637ea4ec8 100644
--- a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
+++ b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
@@ -311,7 +311,8 @@ public class BinaryDictDecoderEncoderTests extends AndroidTestCase {
final String dictName = "codePointTableTest";
final String dictVersion = Long.toString(System.currentTimeMillis());
final String codePointTableAttribute = DictionaryHeader.CODE_POINT_TABLE_KEY;
- final File file = new File(dictName);
+ final File file = BinaryDictUtils.getDictFile(dictName, dictVersion,
+ BinaryDictUtils.VERSION201_OPTIONS, getContext().getCacheDir());
// Write a test dictionary
final DictEncoder dictEncoder = new Ver2DictEncoder(file,