Home
last modified time | relevance | path

Searched refs:mockContentResolver (Results 1 – 7 of 7) sorted by relevance

/expo/packages/expo-media-library/android/src/test/java/expo/modules/medialibrary/albums/
H A DGetAlbumsTests.kt10 import expo.modules.medialibrary.mockContentResolver
48 val context = mockContext with mockContentResolver(cursor) in GetAlbums should resolve with correct response()
77 val context = mockContext with mockContentResolver(cursor) in GetAlbums should not list albums with null name()
91 val context = mockContext with mockContentResolver(null) in GetAlbums should reject on null cursor()
H A DGetAlbumInfoTests.kt9 import expo.modules.medialibrary.mockContentResolver
84 val context = mockContext with mockContentResolver(cursor) in queryAlbum returns correct values()
100 val context = mockContext with mockContentResolver(null) in queryAlbum should reject on null cursor()
H A DGetAlbumTests.kt11 import expo.modules.medialibrary.mockContentResolver in <lambda>()
113 val context = mockContext with mockContentResolver(null) in <lambda>()
156 mockContentResolver(mockAlbumCursor(cursorResults)) in <lambda>()
/expo/packages/expo-media-library/android/src/test/java/expo/modules/medialibrary/
H A DTestUtils.kt19 fun mockContentResolver(cursor: Cursor?): ContentResolver { in mockContentResolver() method
31 mockContentResolver(mockCursor(cursorResults)) in mockContentResolverForResult()
/expo/packages/expo-media-library/android/src/test/java/expo/modules/medialibrary/assets/
H A DGetAssetsTest.kt9 import expo.modules.medialibrary.mockContentResolver
85 val context = mockContext with mockContentResolver(null) in GetAssets should reject on null cursor()
H A DGetAssetInfoTests.kt11 import expo.modules.medialibrary.mockContentResolver
109 val context = mockContext with mockContentResolver(null) in queryAssetInfo should reject on null cursor()
H A DAssetUtilsTests.kt7 import expo.modules.medialibrary.mockContentResolver
41 val contentResolver = mockContentResolver(cursor) in putAssetsInfo returns correct response when fullInfo=false()