mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-28 13:48:12 +00:00
Add unit tests to check for unregistered state.
This commit is contained in:
committed by
Cody Henthorne
parent
5d4fec2e73
commit
4b3013984e
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user