Fix test compilation.

This commit is contained in:
Benoit Marty 2022-10-07 10:08:33 +02:00
parent d4de559809
commit e9e2e5011b

View File

@ -27,6 +27,7 @@ import org.amshove.kluent.shouldBeEqualTo
import org.junit.Before import org.junit.Before
import org.junit.Test import org.junit.Test
import org.matrix.android.sdk.BuildConfig import org.matrix.android.sdk.BuildConfig
import org.matrix.android.sdk.api.util.getApplicationInfoCompat
import org.matrix.android.sdk.api.util.getPackageInfoCompat import org.matrix.android.sdk.api.util.getPackageInfoCompat
import java.lang.Exception import java.lang.Exception
@ -50,7 +51,7 @@ class ComputeUserAgentUseCaseTest {
every { context.applicationContext } returns context every { context.applicationContext } returns context
every { context.packageName } returns A_PACKAGE_NAME every { context.packageName } returns A_PACKAGE_NAME
every { context.packageManager } returns packageManager every { context.packageManager } returns packageManager
every { packageManager.getApplicationInfo(any(), any()) } returns applicationInfo every { packageManager.getApplicationInfoCompat(any(), any()) } returns applicationInfo
every { packageManager.getPackageInfoCompat(any(), any()) } returns packageInfo every { packageManager.getPackageInfoCompat(any(), any()) } returns packageInfo
} }