aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/BinaryDictionaryTests.java
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2013-12-11 10:42:15 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-12-11 10:42:16 +0000
commit549ae3d84effba95d2f37737bfa3ccb1d87094c7 (patch)
tree57c767bc15ac82038c7e6384e2980fe804e3030e /tests/src/com/android/inputmethod/latin/BinaryDictionaryTests.java
parent0719c4ca7283946c99b9291a7ba31c41fd3ff391 (diff)
parent84cc5a2c765831bb965c83bc996e6b906059e159 (diff)
downloadlatinime-549ae3d84effba95d2f37737bfa3ccb1d87094c7.tar.gz
latinime-549ae3d84effba95d2f37737bfa3ccb1d87094c7.tar.xz
latinime-549ae3d84effba95d2f37737bfa3ccb1d87094c7.zip
Merge "Create ver4 dictionary files with the dictionary name."
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/BinaryDictionaryTests.java')
-rw-r--r--tests/src/com/android/inputmethod/latin/BinaryDictionaryTests.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/src/com/android/inputmethod/latin/BinaryDictionaryTests.java b/tests/src/com/android/inputmethod/latin/BinaryDictionaryTests.java
index c14840258..d9d4a5584 100644
--- a/tests/src/com/android/inputmethod/latin/BinaryDictionaryTests.java
+++ b/tests/src/com/android/inputmethod/latin/BinaryDictionaryTests.java
@@ -70,12 +70,13 @@ public class BinaryDictionaryTests extends AndroidTestCase {
Map<String, String> attributeMap = new HashMap<String, String>();
attributeMap.put(FormatSpec.FileHeader.SUPPORTS_DYNAMIC_UPDATE_ATTRIBUTE,
FormatSpec.FileHeader.ATTRIBUTE_VALUE_TRUE);
+ final String headerFileName = file.getName() + FormatSpec.HEADER_FILE_EXTENSION;
if (BinaryDictionary.createEmptyDictFile(file.getAbsolutePath(),
FormatSpec.VERSION4, attributeMap)) {
- return new File(file, FormatSpec.HEADER_FILE_EXTENSION);
+ return new File(file, headerFileName);
} else {
throw new IOException("Empty dictionary " + file.getAbsolutePath() + " "
- + FormatSpec.HEADER_FILE_EXTENSION + " cannot be created.");
+ + headerFileName + " cannot be created.");
}
}