Searched refs:mockContext (Results 1 – 5 of 5) sorted by relevance
27 private lateinit var mockContext: MockContext variable in expo.modules.medialibrary.albums.GetAlbumsTests32 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()
38 private lateinit var mockContext: MockContext in <lambda>() variable in expo.modules.medialibrary.albums.GetAlbumTests43 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>()
32 private lateinit var mockContext: MockContext variable in expo.modules.medialibrary.albums.GetAlbumInfoTests37 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()
37 private lateinit var mockContext: MockContext variable in expo.modules.medialibrary.assets.GetAssetInfoTests42 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()
33 private lateinit var mockContext: MockContext variable in expo.modules.medialibrary.assets.GetAssetsTest49 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()