aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/makedict/Ver2DictDecoderTests.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-02-24 06:00:50 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2014-02-24 06:00:50 -0800
commita6ab1f90657e3cbe91a11e8c64a16212a1070c48 (patch)
tree9214094f6008e98fcca15af9453ca4f232ad55b8 /tests/src/com/android/inputmethod/latin/makedict/Ver2DictDecoderTests.java
parentb7a224636cb9a1356089475ffbd9e45b3084b80d (diff)
parent6e224a236a0a7cd253f74c7ed8b9a8f2eea41600 (diff)
downloadlatinime-a6ab1f90657e3cbe91a11e8c64a16212a1070c48.tar.gz
latinime-a6ab1f90657e3cbe91a11e8c64a16212a1070c48.tar.xz
latinime-a6ab1f90657e3cbe91a11e8c64a16212a1070c48.zip
am 6e224a23: Merge "Correctly read the header of APK-embedded dicts"
* commit '6e224a236a0a7cd253f74c7ed8b9a8f2eea41600': Correctly read the header of APK-embedded dicts
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/makedict/Ver2DictDecoderTests.java')
-rw-r--r--tests/src/com/android/inputmethod/latin/makedict/Ver2DictDecoderTests.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/src/com/android/inputmethod/latin/makedict/Ver2DictDecoderTests.java b/tests/src/com/android/inputmethod/latin/makedict/Ver2DictDecoderTests.java
index a85753e6b..9dc2b1058 100644
--- a/tests/src/com/android/inputmethod/latin/makedict/Ver2DictDecoderTests.java
+++ b/tests/src/com/android/inputmethod/latin/makedict/Ver2DictDecoderTests.java
@@ -68,7 +68,8 @@ public class Ver2DictDecoderTests extends AndroidTestCase {
}
assertNotNull(testFile);
- final Ver2DictDecoder dictDecoder = new Ver2DictDecoder(testFile, factory);
+ final Ver2DictDecoder dictDecoder = new Ver2DictDecoder(testFile, 0, testFile.length(),
+ factory);
try {
dictDecoder.openDictBuffer();
} catch (Exception e) {
@@ -110,7 +111,8 @@ public class Ver2DictDecoderTests extends AndroidTestCase {
Log.e(TAG, "IOException while the creating temporary file", e);
}
- final Ver2DictDecoder dictDecoder = new Ver2DictDecoder(testFile, factory);
+ final Ver2DictDecoder dictDecoder = new Ver2DictDecoder(testFile, 0, testFile.length(),
+ factory);
// the default return value of getBuffer() must be null.
assertNull("the default return value of getBuffer() is not null",