aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-02-24 13:57:46 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-02-24 13:57:46 +0000
commit6e224a236a0a7cd253f74c7ed8b9a8f2eea41600 (patch)
tree9214094f6008e98fcca15af9453ca4f232ad55b8 /tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java
parent64ace089a8cde06ff030aa491b798ec7d32a3ad7 (diff)
parent890b44e5376413adc73025e046072bcce3e119c5 (diff)
downloadlatinime-6e224a236a0a7cd253f74c7ed8b9a8f2eea41600.tar.gz
latinime-6e224a236a0a7cd253f74c7ed8b9a8f2eea41600.tar.xz
latinime-6e224a236a0a7cd253f74c7ed8b9a8f2eea41600.zip
Merge "Correctly read the header of APK-embedded dicts"
Diffstat (limited to '')
-rw-r--r--tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java b/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java
index f4b16a7e1..fa5123665 100644
--- a/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java
+++ b/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java
@@ -150,7 +150,7 @@ public class BinaryDictionaryDecayingTests extends AndroidTestCase {
binaryDictionary.flushWithGC();
binaryDictionary.close();
- final DictDecoder dictDecoder = FormatSpec.getDictDecoder(dictFile);
+ final DictDecoder dictDecoder = FormatSpec.getDictDecoder(dictFile, 0, dictFile.length());
try {
final FusionDictionary dict =
dictDecoder.readDictionaryBinary(false /* deleteDictIfBroken */);