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:07:59 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-03 12:07:59 +0000
commitfd1233f81cf8db1287fb94b7859524c858c23fcd (patch)
tree6c2b89f313e675f5a0d789251fcef89f80f60080 /tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
parent863e61371a03e094835b46204c247b3b0f340277 (diff)
parent3a41528cbe4dbca8781b63457e49c78a78285338 (diff)
downloadlatinime-fd1233f81cf8db1287fb94b7859524c858c23fcd.tar.gz
latinime-fd1233f81cf8db1287fb94b7859524c858c23fcd.tar.xz
latinime-fd1233f81cf8db1287fb94b7859524c858c23fcd.zip
am 3a41528c: Merge "Fix testCharacterTableIsPresent to use BinaryDictUtils.getDictFile"
* commit '3a41528cbe4dbca8781b63457e49c78a78285338': 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,