From c6027ee46486bcc6e0df457c5678eb697d6ed321 Mon Sep 17 00:00:00 2001 From: Shaopeng Jia Date: Thu, 22 Sep 2011 13:53:40 +0200 Subject: Temp fix to the problem of incorrectly classifying Brazilian local numbers as emergency numbers. Bug: 5247602 Change-Id: Ib1626ef25ced2e149c526601bfac72de39e3f1b9 --- .../src/com/android/internal/telephony/PhoneNumberUtilsTest.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'telephony/tests') 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")); } } -- cgit v1.1