FileDocCategorySizeDatePackage
SmsUsageMonitorShortCodeTest.javaAPI DocAndroid 5.1 API29362Thu Mar 12 22:22:54 GMT 2015com.android.internal.telephony

SmsUsageMonitorShortCodeTest

public class SmsUsageMonitorShortCodeTest extends android.test.AndroidTestCase
Test cases for SMS short code pattern matching in SmsUsageMonitor.

Fields Summary
private static final ShortCodeTest[]
sShortCodeTests
List of short code test cases.
Constructors Summary
Methods Summary
public voidtestSmsUsageMonitor()


    
       
        SmsUsageMonitor monitor = new SmsUsageMonitor(getContext());
        for (ShortCodeTest test : sShortCodeTests) {
            assertEquals("country: " + test.countryIso + " number: " + test.address,
                    test.category, monitor.checkDestination(test.address, test.countryIso));
        }