Add unit tests to check for unregistered state.

This commit is contained in:
Alex Hart
2025-03-18 15:39:09 -03:00
committed by Cody Henthorne
parent 5d4fec2e73
commit 4b3013984e
4 changed files with 106 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
package org.thoughtcrime.securesms.jobs
import androidx.annotation.VisibleForTesting
import okio.ByteString.Companion.toByteString
import org.signal.core.util.logging.Log
import org.signal.core.util.orNull
@@ -46,7 +47,8 @@ class InAppPaymentOneTimeContextJob private constructor(
const val KEY = "InAppPurchaseOneTimeContextJob"
private fun create(inAppPayment: InAppPaymentTable.InAppPayment): Job {
@VisibleForTesting
fun create(inAppPayment: InAppPaymentTable.InAppPayment): Job {
return InAppPaymentOneTimeContextJob(
inAppPayment.id,
parameters = Parameters.Builder()