Searched refs:smsProvider (Results 1 – 2 of 2) sorted by relevance
86 public MockContextWithProvider(SmsProvider smsProvider) { in MockContextWithProvider() argument100 smsProvider.attachInfoForTesting(this, providerInfo); in MockContextWithProvider()102 + smsProvider.getContext()); in MockContextWithProvider()106 mResolver.addProvider("sms", smsProvider); in MockContextWithProvider()
599 FakeSmsProvider smsProvider = new FakeSmsProvider(null); in testRestoreSms_NoSms() local600 mMockContentResolver.addProvider("sms", smsProvider); in testRestoreSms_NoSms()602 assertEquals(0, smsProvider.getRowsAdded()); in testRestoreSms_NoSms()612 FakeSmsProvider smsProvider = new FakeSmsProvider(mSmsRows); in testRestoreSms_AllSms() local613 mMockContentResolver.addProvider("sms", smsProvider); in testRestoreSms_AllSms()615 assertEquals(mSmsRows.length, smsProvider.getRowsAdded()); in testRestoreSms_AllSms()627 FakeSmsProvider smsProvider = new FakeSmsProvider(mSmsRows, false); in testRestoreSms_WithException() local628 mMockContentResolver.addProvider("sms", smsProvider); in testRestoreSms_WithException()646 assertEquals(mSmsRows.length - 1, smsProvider.getRowsAdded()); in testRestoreSms_WithException()