Fix unit tests by adding @UsedForTesting.
Change-Id: I8497d6cf446297bc8c15e9d9818078b1026a8c51main
parent
618a949f9d
commit
aa7abb2d89
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
package com.android.inputmethod.latin.makedict;
|
package com.android.inputmethod.latin.makedict;
|
||||||
|
|
||||||
|
import com.android.inputmethod.annotations.UsedForTesting;
|
||||||
import com.android.inputmethod.latin.BinaryDictionary;
|
import com.android.inputmethod.latin.BinaryDictionary;
|
||||||
import com.android.inputmethod.latin.utils.CombinedFormatUtils;
|
import com.android.inputmethod.latin.utils.CombinedFormatUtils;
|
||||||
|
|
||||||
|
@ -30,6 +31,7 @@ public final class ProbabilityInfo {
|
||||||
public final int mLevel;
|
public final int mLevel;
|
||||||
public final int mCount;
|
public final int mCount;
|
||||||
|
|
||||||
|
@UsedForTesting
|
||||||
public static ProbabilityInfo max(final ProbabilityInfo probabilityInfo1,
|
public static ProbabilityInfo max(final ProbabilityInfo probabilityInfo1,
|
||||||
final ProbabilityInfo probabilityInfo2) {
|
final ProbabilityInfo probabilityInfo2) {
|
||||||
if (probabilityInfo1 == null) {
|
if (probabilityInfo1 == null) {
|
||||||
|
|
|
@ -42,6 +42,7 @@ public final class WordProperty implements Comparable<WordProperty> {
|
||||||
|
|
||||||
private int mHashCode = 0;
|
private int mHashCode = 0;
|
||||||
|
|
||||||
|
@UsedForTesting
|
||||||
public WordProperty(final String word, final ProbabilityInfo probabilityInfo,
|
public WordProperty(final String word, final ProbabilityInfo probabilityInfo,
|
||||||
final ArrayList<WeightedString> shortcutTargets,
|
final ArrayList<WeightedString> shortcutTargets,
|
||||||
final ArrayList<WeightedString> bigrams,
|
final ArrayList<WeightedString> bigrams,
|
||||||
|
|
Loading…
Reference in New Issue