1 package com.android.wallpaper.testing 2 3 import android.app.Activity 4 import android.graphics.Bitmap 5 import android.net.Uri 6 import com.android.volley.Request 7 import com.android.wallpaper.network.Requester 8 import com.bumptech.glide.request.target.Target 9 import java.io.File 10 11 /** Test implementation of [Requester] */ 12 class TestRequester : Requester { addToRequestQueuenull13 override fun <T : Any?> addToRequestQueue(request: Request<T>?) { 14 // Do nothing intended 15 } 16 loadImageFilenull17 override fun loadImageFile(imageUrl: Uri?): File { 18 return File("test_file.txt") 19 } 20 loadImageFileWithActivitynull21 override fun loadImageFileWithActivity( 22 activity: Activity?, 23 imageUrl: Uri?, 24 target: Target<File>? 25 ) { 26 // Do nothing intended 27 } 28 loadImageBitmapnull29 override fun loadImageBitmap(imageUrl: Uri?, target: Target<Bitmap>?) { 30 // Do nothing intended 31 } 32 } 33