aboutsummaryrefslogtreecommitdiffstats
path: root/tools/dicttool/tests
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-10-21 14:34:34 +0900
committerJean Chalard <jchalard@google.com>2014-10-23 16:57:11 +0900
commit52e92b8a3fdef3c32dabe7406bd1bd1922d89ea5 (patch)
treef004448bcd8674f0df5ad1c975540df96c2d8cfc /tools/dicttool/tests
parentd3a4c5132422b189c8dbb94dbbe84a9b9761b0a8 (diff)
downloadlatinime-52e92b8a3fdef3c32dabe7406bd1bd1922d89ea5.tar.gz
latinime-52e92b8a3fdef3c32dabe7406bd1bd1922d89ea5.tar.xz
latinime-52e92b8a3fdef3c32dabe7406bd1bd1922d89ea5.zip
Simplify handling of steps in DecoderChainSpec
This is a preliminary refactoring change to improve performance in dicttool diagnostic tools. Change-Id: I9a59328af62e336809246be5bebbbf2e154366b3
Diffstat (limited to 'tools/dicttool/tests')
-rw-r--r--tools/dicttool/tests/com/android/inputmethod/latin/dicttool/BinaryDictOffdeviceUtilsTests.java5
1 files changed, 3 insertions, 2 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 179a8875d..fc0cbfd27 100644
--- a/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/BinaryDictOffdeviceUtilsTests.java
+++ b/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/BinaryDictOffdeviceUtilsTests.java
@@ -78,8 +78,9 @@ public class BinaryDictOffdeviceUtilsTests extends TestCase {
// Test for an actually compressed dictionary and its contents
final BinaryDictOffdeviceUtils.DecoderChainSpec decodeSpec =
BinaryDictOffdeviceUtils.getRawDictionaryOrNull(dst);
- for (final String step : decodeSpec.mDecoderSpec) {
- assertEquals("Wrong decode spec", BinaryDictOffdeviceUtils.COMPRESSION, step);
+ for (final int step : decodeSpec.mDecoderSpec) {
+ assertEquals("Wrong decode spec",
+ BinaryDictOffdeviceUtils.DecoderChainSpec.COMPRESSION, step);
}
assertEquals("Wrong decode spec", 3, decodeSpec.mDecoderSpec.size());
final DictDecoder dictDecoder = BinaryDictIOUtils.getDictDecoder(decodeSpec.mFile, 0,