aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2013-10-04 09:48:26 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-10-04 09:48:27 +0000
commit676bb517ed7cf137c084a861ab0c2a88dd7a6452 (patch)
treeac9f2669e69310da96b3b31c4cb820b93ee5f235 /tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
parent618158e675c27854b0ab2cb53ec2eb2837a593c0 (diff)
parente4e0add9fb6e4eef506d22a1cbf877eae24bb1ba (diff)
downloadlatinime-676bb517ed7cf137c084a861ab0c2a88dd7a6452.tar.gz
latinime-676bb517ed7cf137c084a861ab0c2a88dd7a6452.tar.xz
latinime-676bb517ed7cf137c084a861ab0c2a88dd7a6452.zip
Merge "Add Ver4DictUpdater."
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, 3 insertions, 0 deletions
diff --git a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
index d17b30602..0189b3334 100644
--- a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
+++ b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
@@ -660,6 +660,8 @@ public class BinaryDictDecoderEncoderTests extends AndroidTestCase {
final DictUpdater dictUpdater;
if (formatOptions.mVersion == 3) {
dictUpdater = new Ver3DictUpdater(file, DictDecoder.USE_WRITABLE_BYTEBUFFER);
+ } else if (formatOptions.mVersion == 4) {
+ dictUpdater = new Ver4DictUpdater(file, DictDecoder.USE_WRITABLE_BYTEBUFFER);
} else {
throw new RuntimeException("DictUpdater for version " + formatOptions.mVersion
+ " doesn't exist.");
@@ -684,5 +686,6 @@ public class BinaryDictDecoderEncoderTests extends AndroidTestCase {
public void testDeleteWord() {
runTestDeleteWord(VERSION3_WITH_DYNAMIC_UPDATE);
+ runTestDeleteWord(VERSION4_WITH_DYNAMIC_UPDATE);
}
}