Home
last modified time | relevance | path

Searched refs:mockResolver (Results 1 – 5 of 5) sorted by relevance

/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/util/
DDnsUtilsTest.kt50 lateinit var mockResolver: DnsResolver variable in com.android.networkstack.netlink.util.DnsUtilsTest
56 fakeDns = FakeDns(mockResolver) in setup()
75 DnsUtils.getAllByName(mockResolver, fakeNetwork, name, type, FLAG_EMPTY, DEFAULT_TIMEOUT_MS, in verifyGetAllByName()
88 DnsUtils.getAllByName(mockResolver, fakeNetwork, name, type, in verifyGetAllByNameFails()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/map/
DBluetoothMapContentObserverTest.java73 MockContentResolver mockResolver = new MockContentResolver(); in testInitMsgList() local
75 mockResolver.addProvider("sms", mockProvider); in testInitMsgList()
83 when(mockContext.getContentResolver()).thenReturn(mockResolver); in testInitMsgList()
/packages/modules/NetworkStack/tests/lib/src/com/android/testutils/
DFakeDns.kt33 class FakeDns(val mockResolver: DnsResolver) { constant in com.android.testutils.FakeDns
61 }.`when`(mockResolver).query(any() /* network */, any() /* domain */, anyInt() /* flags */, in startMocking()
66 }.`when`(mockResolver).query(any() /* network */, any() /* domain */, anyInt() /* nsType */, in startMocking()
/packages/apps/Contacts/tests/src/com/android/contacts/activities/
DSimImportActivityTest.java238 final MockContentResolver mockResolver = new MockContentResolver(); in selectionsAreImportedAndDisabledOnSubsequentImports() local
239 mockResolver.addProvider("icc", iccProvider); in selectionsAreImportedAndDisabledOnSubsequentImports()
242 mockResolver.addProvider(ContactsContract.AUTHORITY, new ForwardingContentProvider( in selectionsAreImportedAndDisabledOnSubsequentImports()
249 mContext, mockResolver, in selectionsAreImportedAndDisabledOnSubsequentImports()
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DSimContactDaoTests.java587 final MockContentResolver mockResolver = new MockContentResolver(); in setUp() local
589 mockResolver.addProvider("icc", mMockIccProvider); in setUp()
590 when(mContext.getContentResolver()).thenReturn(mockResolver); in setUp()
714 final MockContentResolver mockResolver = new MockContentResolver(); in returnsEmptyListForNullCursor() local
723 mockResolver.addProvider("icc", mockProvider); in returnsEmptyListForNullCursor()
724 when(mContext.getContentResolver()).thenReturn(mockResolver); in returnsEmptyListForNullCursor()