diff options
author | Tammo Spalink <tammo@google.com> | 2009-10-05 14:20:06 +0800 |
---|---|---|
committer | Tammo Spalink <tammo@google.com> | 2009-10-05 14:20:06 +0800 |
commit | 61aac7b377ac4878a5778457cad239fe3a50604a (patch) | |
tree | 87f9b3bd317036559bbe74f77618be02f77388a8 /tests | |
parent | 48e6725c828a8d420d43925b0c9a9a915a8c4e2f (diff) | |
download | frameworks_base-61aac7b377ac4878a5778457cad239fe3a50604a.zip frameworks_base-61aac7b377ac4878a5778457cad239fe3a50604a.tar.gz frameworks_base-61aac7b377ac4878a5778457cad239fe3a50604a.tar.bz2 |
Add PERIOD char to CDMA address sugar list.
Addresses issue:
http://buganizer/issue?id=2164455
Diffstat (limited to 'tests')
-rw-r--r-- | tests/AndroidTests/src/com/android/unit_tests/CdmaSmsTest.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/AndroidTests/src/com/android/unit_tests/CdmaSmsTest.java b/tests/AndroidTests/src/com/android/unit_tests/CdmaSmsTest.java index 4a77e19..85840a8 100644 --- a/tests/AndroidTests/src/com/android/unit_tests/CdmaSmsTest.java +++ b/tests/AndroidTests/src/com/android/unit_tests/CdmaSmsTest.java @@ -61,6 +61,16 @@ public class CdmaSmsTest extends AndroidTestCase { for (int i = 0; i < data2.length; i++) { assertEquals(addr.origBytes[i], data2[i]); } + addr = CdmaSmsAddress.parse("650.253.1000"); + assertEquals(addr.ton, CdmaSmsAddress.TON_UNKNOWN); + assertEquals(addr.digitMode, CdmaSmsAddress.DIGIT_MODE_4BIT_DTMF); + assertEquals(addr.numberMode, CdmaSmsAddress.NUMBER_MODE_NOT_DATA_NETWORK); + assertEquals(addr.numberOfDigits, 10); + assertEquals(addr.origBytes.length, 10); + byte[] data5 = {6, 5, 10, 2, 5, 3, 1, 10, 10, 10}; + for (int i = 0; i < data2.length; i++) { + assertEquals(addr.origBytes[i], data5[i]); + } addr = CdmaSmsAddress.parse("(+886) 917 222 555"); assertEquals(addr.ton, CdmaSmsAddress.TON_INTERNATIONAL_OR_IP); assertEquals(addr.digitMode, CdmaSmsAddress.DIGIT_MODE_4BIT_DTMF); |