summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-11-22 12:09:45 -0800
committerYorke Lee <yorkelee@google.com>2013-11-22 12:10:26 -0800
commite43f8e97a6f37dc23ce13dbfbf0483f1d1f737d3 (patch)
tree0f7085b9a832f27533802058e6494530f0f5e786 /tests
parent5c432033aed8c083f225b79c49c570d2b24618c1 (diff)
downloadandroid_packages_apps_Dialer-e43f8e97a6f37dc23ce13dbfbf0483f1d1f737d3.tar.gz
android_packages_apps_Dialer-e43f8e97a6f37dc23ce13dbfbf0483f1d1f737d3.tar.bz2
android_packages_apps_Dialer-e43f8e97a6f37dc23ce13dbfbf0483f1d1f737d3.zip
Fix SmartDialNameMatcher NANP test
Statically initialize prefix logic to use NANP matching for NANP tests Bug: 10346442 Change-Id: Ia268de8a9bc5ad8dae70fe6934823a3c289f0bae
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/dialer/dialpad/SmartDialNameMatcherTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/src/com/android/dialer/dialpad/SmartDialNameMatcherTest.java b/tests/src/com/android/dialer/dialpad/SmartDialNameMatcherTest.java
index 1e578eee7..c1365f5cf 100644
--- a/tests/src/com/android/dialer/dialpad/SmartDialNameMatcherTest.java
+++ b/tests/src/com/android/dialer/dialpad/SmartDialNameMatcherTest.java
@@ -198,6 +198,7 @@ public class SmartDialNameMatcherTest extends TestCase {
}
public void testMatches_NumberNANP() {
+ SmartDialPrefix.setUserInNanpRegion(true);
// An 11 digit number prefixed with 1 should be matched by the 10 digit number, as well as
// the 7 digit number (without area code)
checkMatchesNumber("1-510-333-7596", "5103337596", true, true, 2, 14);