diff options
author | 2014-02-24 22:17:27 +0900 | |
---|---|---|
committer | 2014-02-24 22:54:01 +0900 | |
commit | 890b44e5376413adc73025e046072bcce3e119c5 (patch) | |
tree | 4baf38d0e2206ef2ee6fbe992e976fea71e74bbb /tools/dicttool/tests | |
parent | b08a9e021c2e5be7375295858b28bf8c4b9767b9 (diff) | |
download | latinime-890b44e5376413adc73025e046072bcce3e119c5.tar.gz latinime-890b44e5376413adc73025e046072bcce3e119c5.tar.xz latinime-890b44e5376413adc73025e046072bcce3e119c5.zip |
Correctly read the header of APK-embedded dicts
Bug: 13164518
Change-Id: I8768ad887af8b89ad9f29637f606c3c68629c7ca
Diffstat (limited to 'tools/dicttool/tests')
-rw-r--r-- | tools/dicttool/tests/com/android/inputmethod/latin/dicttool/BinaryDictOffdeviceUtilsTests.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/BinaryDictOffdeviceUtilsTests.java b/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/BinaryDictOffdeviceUtilsTests.java index 7a4f6f7c5..faf00b4a5 100644 --- a/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/BinaryDictOffdeviceUtilsTests.java +++ b/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/BinaryDictOffdeviceUtilsTests.java @@ -77,7 +77,8 @@ public class BinaryDictOffdeviceUtilsTests extends TestCase { assertEquals("Wrong decode spec", BinaryDictOffdeviceUtils.COMPRESSION, step); } assertEquals("Wrong decode spec", 3, decodeSpec.mDecoderSpec.size()); - final DictDecoder dictDecoder = FormatSpec.getDictDecoder(decodeSpec.mFile); + final DictDecoder dictDecoder = FormatSpec.getDictDecoder(decodeSpec.mFile, 0, + decodeSpec.mFile.length()); final FusionDictionary resultDict = dictDecoder.readDictionaryBinary(false /* deleteDictIfBroken */); assertEquals("Wrong version attribute", VERSION, resultDict.mOptions.mAttributes.get( |