mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Fix test for mac.
This commit is contained in:
@@ -2,6 +2,7 @@ package org.thoughtcrime.securesms.crypto.storage
|
||||
|
||||
import android.content.Context
|
||||
import junit.framework.Assert.assertEquals
|
||||
import org.junit.Before
|
||||
import org.junit.Test
|
||||
import org.mockito.Mockito.`when`
|
||||
import org.mockito.Mockito.mock
|
||||
@@ -12,6 +13,7 @@ import org.thoughtcrime.securesms.database.model.IdentityStoreRecord
|
||||
import org.whispersystems.libsignal.IdentityKey
|
||||
import org.whispersystems.libsignal.SignalProtocolAddress
|
||||
import org.whispersystems.libsignal.ecc.ECPublicKey
|
||||
import org.whispersystems.signalservice.test.LibSignalLibraryUtil.assumeLibSignalSupportedOnOS
|
||||
|
||||
class TextSecureIdentityKeyStoreTest {
|
||||
|
||||
@@ -19,6 +21,11 @@ class TextSecureIdentityKeyStoreTest {
|
||||
private const val ADDRESS = "address1"
|
||||
}
|
||||
|
||||
@Before
|
||||
fun ensureNativeSupported() {
|
||||
assumeLibSignalSupportedOnOS()
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `getIdentity() hits disk on first retrieve but not the second`() {
|
||||
val mockDb = mock(IdentityDatabase::class.java)
|
||||
|
||||
Reference in New Issue
Block a user