From 8317acad48e4894e55d75c2f117e127667c93d6c Mon Sep 17 00:00:00 2001 From: Keisuke Kuroyanagi Date: Mon, 9 Dec 2013 15:48:30 +0900 Subject: [PATCH] Create dictionary with historical info for testing. Bug: 11073222 Change-Id: I3573badceaceb9f4660884a4b23c337c63103701 --- .../inputmethod/latin/BinaryDictionaryDecayingTests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java b/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java index 95504ef14..618b4ac1d 100644 --- a/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java +++ b/tests/src/com/android/inputmethod/latin/BinaryDictionaryDecayingTests.java @@ -105,6 +105,8 @@ public class BinaryDictionaryDecayingTests extends AndroidTestCase { FormatSpec.FileHeader.ATTRIBUTE_VALUE_TRUE); attributeMap.put(FormatSpec.FileHeader.USES_FORGETTING_CURVE_ATTRIBUTE, FormatSpec.FileHeader.ATTRIBUTE_VALUE_TRUE); + attributeMap.put(FormatSpec.FileHeader.HAS_HISTORICAL_INFO_ATTRIBUTE, + FormatSpec.FileHeader.ATTRIBUTE_VALUE_TRUE); if (BinaryDictionary.createEmptyDictFile(file.getAbsolutePath(), 4 /* dictVersion */, attributeMap)) { return new File(file, FormatSpec.TRIE_FILE_EXTENSION);