summaryrefslogtreecommitdiffstats
path: root/telephony/tests
diff options
context:
space:
mode:
authorShaopeng Jia <shaopengjia@google.com>2011-09-22 13:53:40 +0200
committerShaopeng Jia <shaopengjia@google.com>2011-09-22 23:22:56 +0200
commitc6027ee46486bcc6e0df457c5678eb697d6ed321 (patch)
tree95ae847a72ad8a665ae033bbd19cf8b5c4c6186f /telephony/tests
parent013ccb7010ac9a231eb737ed268acb4b9653b268 (diff)
downloadframeworks_base-c6027ee46486bcc6e0df457c5678eb697d6ed321.zip
frameworks_base-c6027ee46486bcc6e0df457c5678eb697d6ed321.tar.gz
frameworks_base-c6027ee46486bcc6e0df457c5678eb697d6ed321.tar.bz2
Temp fix to the problem of incorrectly classifying Brazilian local
numbers as emergency numbers. Bug: 5247602 Change-Id: Ib1626ef25ced2e149c526601bfac72de39e3f1b9
Diffstat (limited to 'telephony/tests')
-rw-r--r--telephony/tests/telephonytests/src/com/android/internal/telephony/PhoneNumberUtilsTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/telephony/tests/telephonytests/src/com/android/internal/telephony/PhoneNumberUtilsTest.java b/telephony/tests/telephonytests/src/com/android/internal/telephony/PhoneNumberUtilsTest.java
index d3e4b78..849ff48 100644
--- a/telephony/tests/telephonytests/src/com/android/internal/telephony/PhoneNumberUtilsTest.java
+++ b/telephony/tests/telephonytests/src/com/android/internal/telephony/PhoneNumberUtilsTest.java
@@ -551,5 +551,8 @@ public class PhoneNumberUtilsTest extends AndroidTestCase {
// A valid fixed-line phone number from Brazil shouldn't be classified as an emergency number
// in Brazil, as 112 is not an emergency number there.
assertFalse(PhoneNumberUtils.isEmergencyNumber("1121234567", "BR"));
+ // A valid local phone number from Brazil shouldn't be classified as an emergency number in
+ // Brazil.
+ assertFalse(PhoneNumberUtils.isEmergencyNumber("91112345", "BR"));
}
}