summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-05-21 17:32:28 -0700
committerYorke Lee <yorkelee@google.com>2013-05-23 15:54:33 -0700
commit14b5dc80abc65855be0eef3f5baf17ef719a66d7 (patch)
tree6f970dc80dd9737055219128c297653e72ffc06c /tests
parent1b0da236015f2a7801566fb44e1c2585a44cd6a2 (diff)
Added SmartDialMap interface
All character validation, remap and index calculations in both SmartDialTrie and SmartDialNameMatcher now go through a SmartDialMap. The LatinSmartDialMap is used by default. Bug: 8769026 Change-Id: I4ff90acc380e802f035ca1fbc55c022bf3b76aa3
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/dialer/dialpad/SmartDialNameMatcherTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/src/com/android/dialer/dialpad/SmartDialNameMatcherTest.java b/tests/src/com/android/dialer/dialpad/SmartDialNameMatcherTest.java
index eb6f05087..47edaf371 100644
--- a/tests/src/com/android/dialer/dialpad/SmartDialNameMatcherTest.java
+++ b/tests/src/com/android/dialer/dialpad/SmartDialNameMatcherTest.java
@@ -236,7 +236,8 @@ public class SmartDialNameMatcherTest extends TestCase {
private void checkMatchesNumber(String number, String query, boolean expectedMatches,
boolean matchNanp, int matchStart, int matchEnd) {
- final SmartDialMatchPosition pos = SmartDialNameMatcher.matchesNumber(number, query,
+ final SmartDialNameMatcher matcher = new SmartDialNameMatcher(query);
+ final SmartDialMatchPosition pos = matcher.matchesNumber(number, query,
matchNanp);
assertEquals(expectedMatches, pos != null);
if (expectedMatches) {