aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authorYuichiro Hanada <yhanada@google.com>2013-08-20 13:15:27 +0900
committerYuichiro Hanada <yhanada@google.com>2013-08-20 16:06:52 +0900
commit66004ce2de1579d8ae1fb3411ce98f1e9e37cf8b (patch)
tree4109aeb448461c26d10a1e22559c46f2b41b7928 /tests/src
parent22f01a42fcd91dae2a4e723e2477a480a11daa8e (diff)
downloadlatinime-66004ce2de1579d8ae1fb3411ce98f1e9e37cf8b.tar.gz
latinime-66004ce2de1579d8ae1fb3411ce98f1e9e37cf8b.tar.xz
latinime-66004ce2de1579d8ae1fb3411ce98f1e9e37cf8b.zip
Remove populateOptions.
Change-Id: I1a1830aaa8ea586b68fc34ff3a27ae52b810e8af
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java2
-rw-r--r--tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtilsTests.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
index 77397a68c..028e089f8 100644
--- a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
+++ b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
@@ -505,7 +505,7 @@ public class BinaryDictDecoderEncoderTests extends AndroidTestCase {
FileHeader fileHeader = null;
try {
- fileHeader = BinaryDictDecoderUtils.readHeader(dictDecoder);
+ fileHeader = dictDecoder.readHeader();
} catch (IOException e) {
return null;
} catch (UnsupportedFormatException e) {
diff --git a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtilsTests.java b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtilsTests.java
index 7c0f07d43..b6e439561 100644
--- a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtilsTests.java
+++ b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtilsTests.java
@@ -130,7 +130,7 @@ public class BinaryDictIOUtilsTests extends AndroidTestCase {
private static void printBinaryFile(final BinaryDictDecoder dictDecoder)
throws IOException, UnsupportedFormatException {
- final FileHeader fileHeader = BinaryDictDecoderUtils.readHeader(dictDecoder);
+ final FileHeader fileHeader = dictDecoder.readHeader();
final DictBuffer buffer = dictDecoder.getDictBuffer();
while (buffer.position() < buffer.limit()) {
printNode(buffer, fileHeader.mFormatOptions);
@@ -225,7 +225,7 @@ public class BinaryDictIOUtilsTests extends AndroidTestCase {
try {
final DictBuffer dictBuffer = dictDecoder.openAndGetDictBuffer(
new BinaryDictDecoder.DictionaryBufferFromReadOnlyByteBufferFactory());
- final FileHeader fileHeader = BinaryDictDecoderUtils.readHeader(dictDecoder);
+ final FileHeader fileHeader = dictDecoder.readHeader();
assertEquals(word,
BinaryDictDecoderUtils.getWordAtAddress(dictDecoder.getDictBuffer(),
fileHeader.mHeaderSize, position - fileHeader.mHeaderSize,