diff --git a/coil-test/src/commonTest/kotlin/coil3/test/FakeImageLoaderEngineTest.kt b/coil-test/src/commonTest/kotlin/coil3/test/FakeImageLoaderEngineTest.kt index 4d7c97b558..86a17305ff 100644 --- a/coil-test/src/commonTest/kotlin/coil3/test/FakeImageLoaderEngineTest.kt +++ b/coil-test/src/commonTest/kotlin/coil3/test/FakeImageLoaderEngineTest.kt @@ -18,7 +18,7 @@ class FakeImageLoaderEngineTest : RobolectricTest() { @Test fun extraData() = runTest { val url = "https://www.example.com/image.jpg" - val image = FakeImage() + val image = ColorImage() val engine = FakeImageLoaderEngine.Builder() .intercept(url, image) .build() @@ -39,9 +39,9 @@ class FakeImageLoaderEngineTest : RobolectricTest() { @Test fun predicateData() = runTest { val url = "https://www.example.com/image.jpg" - val image = FakeImage() + val image = ColorImage() val engine = FakeImageLoaderEngine.Builder() - .intercept("different_string", FakeImage()) + .intercept("different_string", ColorImage()) .intercept({ it is String && it == url }, image) .build() val imageLoader = ImageLoader.Builder(context) @@ -61,9 +61,9 @@ class FakeImageLoaderEngineTest : RobolectricTest() { @Test fun defaultDrawable() = runTest { val url = "https://www.example.com/image.jpg" - val image = FakeImage() + val image = ColorImage() val engine = FakeImageLoaderEngine.Builder() - .intercept("different_string", FakeImage()) + .intercept("different_string", ColorImage()) .default(image) .build() val imageLoader = ImageLoader.Builder(context) @@ -84,7 +84,7 @@ class FakeImageLoaderEngineTest : RobolectricTest() { fun optionalInterceptor() = runTest { var currentIndex = -1 val url = "https://www.example.com/image.jpg" - val images = listOf(FakeImage(), FakeImage(), FakeImage()) + val images = listOf(ColorImage(), ColorImage(), ColorImage()) fun testInterceptor(index: Int) = OptionalInterceptor { chain -> if (currentIndex == index) { SuccessResult(images[index], chain.request, DataSource.MEMORY) @@ -119,7 +119,7 @@ class FakeImageLoaderEngineTest : RobolectricTest() { fun requestTransformerEnforcesInvariants() = runTest { val url = "https://www.example.com/image.jpg" val engine = FakeImageLoaderEngine.Builder() - .intercept(url, FakeImage()) + .intercept(url, ColorImage()) .requestTransformer { request -> request.newBuilder() .data(null)