aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/BinaryDictionaryTests.java
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2013-12-11 02:43:45 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-12-11 02:43:45 -0800
commitff6359e111c621a35f4273590e6319ea84ff9356 (patch)
tree57c767bc15ac82038c7e6384e2980fe804e3030e /tests/src/com/android/inputmethod/latin/BinaryDictionaryTests.java
parent176dd05934bc98d8a214e4607c00ea8cd2d4f71a (diff)
parent549ae3d84effba95d2f37737bfa3ccb1d87094c7 (diff)
downloadlatinime-ff6359e111c621a35f4273590e6319ea84ff9356.tar.gz
latinime-ff6359e111c621a35f4273590e6319ea84ff9356.tar.xz
latinime-ff6359e111c621a35f4273590e6319ea84ff9356.zip
am 549ae3d8: Merge "Create ver4 dictionary files with the dictionary name."
* commit '549ae3d84effba95d2f37737bfa3ccb1d87094c7': 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.");
}
}