aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2013-10-09 18:54:51 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-09 18:54:51 -0700
commitbcb095e72f57df667f133e0d8d4e223045bfed70 (patch)
tree5933327da07c15ec2069179d068a1109bce01bc8 /tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
parentf9de7ca5fd3e4462ccfbe1d8a6db8b8a382bc4eb (diff)
parente6a6402258a9dae8b71be7af94d682ebb775b28f (diff)
downloadlatinime-bcb095e72f57df667f133e0d8d4e223045bfed70.tar.gz
latinime-bcb095e72f57df667f133e0d8d4e223045bfed70.tar.xz
latinime-bcb095e72f57df667f133e0d8d4e223045bfed70.zip
am e6a64022: am 676bb517: Merge "Add Ver4DictUpdater."
* commit 'e6a6402258a9dae8b71be7af94d682ebb775b28f': 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);
}
}