Create dictionary with historical info for testing.
Bug: 11073222 Change-Id: I3573badceaceb9f4660884a4b23c337c63103701
This commit is contained in:
parent
0a213fd625
commit
8317acad48
1 changed files with 2 additions and 0 deletions
|
@ -105,6 +105,8 @@ public class BinaryDictionaryDecayingTests extends AndroidTestCase {
|
||||||
FormatSpec.FileHeader.ATTRIBUTE_VALUE_TRUE);
|
FormatSpec.FileHeader.ATTRIBUTE_VALUE_TRUE);
|
||||||
attributeMap.put(FormatSpec.FileHeader.USES_FORGETTING_CURVE_ATTRIBUTE,
|
attributeMap.put(FormatSpec.FileHeader.USES_FORGETTING_CURVE_ATTRIBUTE,
|
||||||
FormatSpec.FileHeader.ATTRIBUTE_VALUE_TRUE);
|
FormatSpec.FileHeader.ATTRIBUTE_VALUE_TRUE);
|
||||||
|
attributeMap.put(FormatSpec.FileHeader.HAS_HISTORICAL_INFO_ATTRIBUTE,
|
||||||
|
FormatSpec.FileHeader.ATTRIBUTE_VALUE_TRUE);
|
||||||
if (BinaryDictionary.createEmptyDictFile(file.getAbsolutePath(),
|
if (BinaryDictionary.createEmptyDictFile(file.getAbsolutePath(),
|
||||||
4 /* dictVersion */, attributeMap)) {
|
4 /* dictVersion */, attributeMap)) {
|
||||||
return new File(file, FormatSpec.TRIE_FILE_EXTENSION);
|
return new File(file, FormatSpec.TRIE_FILE_EXTENSION);
|
||||||
|
|
Loading…
Reference in a new issue