forked from GitHub-Mirror/riotX-android
15 lines
329 B
Kotlin
15 lines
329 B
Kotlin
package im.vector.matrix.android
|
|
|
|
import android.content.Context
|
|
import android.support.test.InstrumentationRegistry
|
|
import java.io.File
|
|
|
|
interface InstrumentedTest {
|
|
fun context(): Context {
|
|
return InstrumentationRegistry.getTargetContext()
|
|
}
|
|
|
|
fun cacheDir(): File {
|
|
return context().cacheDir
|
|
}
|
|
} |