Home
last modified time | relevance | path

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

/expo/packages/expo-media-library/android/src/test/java/expo/modules/medialibrary/albums/
H A DGetAlbumsTests.kt27 private lateinit var mockContext: MockContext variable in expo.modules.medialibrary.albums.GetAlbumsTests
32 mockContext = MockContext() in setUp()
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()
103 val context = mockContext with throwableContentResolver(SecurityException()) in GetAlbums should reject on SecurityException()
115 val context = mockContext with throwableContentResolver(IllegalArgumentException()) in GetAlbums should reject on IllegalArgumentException()
H A DGetAlbumTests.kt38 private lateinit var mockContext: MockContext in <lambda>() variable in expo.modules.medialibrary.albums.GetAlbumTests
43 mockContext = MockContext() in <lambda>()
49 val context = mockContext.get() in <lambda>()
78 val context = mockContext with mockContentResolverForAlbum( in <lambda>()
98 val context = mockContext with mockContentResolverForAlbum(emptyArray()) in <lambda>()
113 val context = mockContext with mockContentResolver(null) in <lambda>()
125 val context = mockContext with throwableContentResolver(SecurityException()) in <lambda>()
137 val context = mockContext with throwableContentResolver(IllegalArgumentException()) in <lambda>()
H A DGetAlbumInfoTests.kt32 private lateinit var mockContext: MockContext variable in expo.modules.medialibrary.albums.GetAlbumInfoTests
37 mockContext = MockContext() in setUp()
43 val context = mockContext.get() in GetAlbum should call queryAlbum()
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()
112 val context = mockContext with throwableContentResolver(SecurityException()) in queryAlbum should reject on SecurityException()
124 val context = mockContext with throwableContentResolver(IllegalArgumentException()) in queryAlbum should reject on IllegalArgumentException()
/expo/packages/expo-media-library/android/src/test/java/expo/modules/medialibrary/assets/
H A DGetAssetInfoTests.kt37 private lateinit var mockContext: MockContext variable in expo.modules.medialibrary.assets.GetAssetInfoTests
42 mockContext = MockContext() in setUp()
53 val context = mockContext.get() in GetAssetInfo should call queryAssetInfo()
83 val context = mockContext with mockContentResolverForResult( in queryAssetInfo should resolve asset()
109 val context = mockContext with mockContentResolver(null) in queryAssetInfo should reject on null cursor()
121 val context = mockContext with throwableContentResolver(SecurityException()) in queryAssetInfo should reject on SecurityException()
132 val context = mockContext with throwableContentResolver(IOException()) in queryAssetInfo should reject on IOException()
H A DGetAssetsTest.kt33 private lateinit var mockContext: MockContext variable in expo.modules.medialibrary.assets.GetAssetsTest
49 mockContext = MockContext() in setUp()
66 val context = mockContext with mockContentResolverForResult( in getAssets should resolve with correct response()
85 val context = mockContext with mockContentResolver(null) in GetAssets should reject on null cursor()
97 val context = mockContext with throwableContentResolver(SecurityException()) in GetAssets should reject on SecurityException()
109 val context = mockContext with throwableContentResolver(IOException()) in GetAssets should reject on IOException()