diff options
author | Xia Wang <xiaw@google.com> | 2010-07-07 17:34:20 -0700 |
---|---|---|
committer | Xia Wang <xiaw@google.com> | 2010-07-07 18:43:17 -0700 |
commit | 374fe5c446143778d30da507f0660d139a1f44cd (patch) | |
tree | 8db37b13c2f868536df78fe2243a68b2ad70a590 /telephony | |
parent | f3f25bf80b7d21f12442da8f82d17c79dd371692 (diff) | |
download | frameworks_base-374fe5c446143778d30da507f0660d139a1f44cd.zip frameworks_base-374fe5c446143778d30da507f0660d139a1f44cd.tar.gz frameworks_base-374fe5c446143778d30da507f0660d139a1f44cd.tar.bz2 |
Remove voice mail number verification for testing on no-sim device
Change-Id: Iaf9e419b8d03e330864d64c05aee730d33994003
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/tests/telephonytests/src/android/telephony/PhoneNumberUtilsTest.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/telephony/tests/telephonytests/src/android/telephony/PhoneNumberUtilsTest.java b/telephony/tests/telephonytests/src/android/telephony/PhoneNumberUtilsTest.java index a74c5c2..de59b81 100644 --- a/telephony/tests/telephonytests/src/android/telephony/PhoneNumberUtilsTest.java +++ b/telephony/tests/telephonytests/src/android/telephony/PhoneNumberUtilsTest.java @@ -496,9 +496,11 @@ public class PhoneNumberUtilsTest extends AndroidTestCase { assertFalse(PhoneNumberUtils.isVoiceMailNumber("+18001234567")); assertFalse(PhoneNumberUtils.isVoiceMailNumber("")); assertFalse(PhoneNumberUtils.isVoiceMailNumber(null)); - TelephonyManager mTelephonyManager = + // This test fails on a device without a sim card + /*TelephonyManager mTelephonyManager = (TelephonyManager)getContext().getSystemService(Context.TELEPHONY_SERVICE); String mVoiceMailNumber = mTelephonyManager.getDefault().getVoiceMailNumber(); assertTrue(PhoneNumberUtils.isVoiceMailNumber(mVoiceMailNumber)); + */ } } |