@@ -9,10 +9,10 @@ package io.element.android.libraries.matrix.impl.analytics
99
1010import com.google.common.truth.Truth.assertThat
1111import im.vector.app.features.analytics.plan.Error
12+ import io.element.android.libraries.matrix.impl.fixtures.factories.aRustUnableToDecryptInfo
1213import io.element.android.libraries.matrix.test.AN_EVENT_ID
1314import io.element.android.services.analytics.test.FakeAnalyticsService
1415import org.junit.Test
15- import org.matrix.rustcomponents.sdk.UnableToDecryptInfo
1616import uniffi.matrix_sdk_crypto.UtdCause
1717
1818class UtdTrackerTest {
@@ -21,7 +21,7 @@ class UtdTrackerTest {
2121 val fakeAnalyticsService = FakeAnalyticsService ()
2222 val sut = UtdTracker (fakeAnalyticsService)
2323 sut.onUtd(
24- UnableToDecryptInfo (
24+ aRustUnableToDecryptInfo (
2525 eventId = AN_EVENT_ID .value,
2626 timeToDecryptMs = null ,
2727 cause = UtdCause .UNKNOWN ,
@@ -46,7 +46,7 @@ class UtdTrackerTest {
4646 val fakeAnalyticsService = FakeAnalyticsService ()
4747 val sut = UtdTracker (fakeAnalyticsService)
4848 sut.onUtd(
49- UnableToDecryptInfo (
49+ aRustUnableToDecryptInfo (
5050 eventId = AN_EVENT_ID .value,
5151 timeToDecryptMs = 123 .toULong(),
5252 cause = UtdCause .UNKNOWN ,
@@ -71,7 +71,7 @@ class UtdTrackerTest {
7171 val fakeAnalyticsService = FakeAnalyticsService ()
7272 val sut = UtdTracker (fakeAnalyticsService)
7373 sut.onUtd(
74- UnableToDecryptInfo (
74+ aRustUnableToDecryptInfo (
7575 eventId = AN_EVENT_ID .value,
7676 timeToDecryptMs = 123 .toULong(),
7777 cause = UtdCause .SENT_BEFORE_WE_JOINED ,
@@ -96,7 +96,7 @@ class UtdTrackerTest {
9696 val fakeAnalyticsService = FakeAnalyticsService ()
9797 val sut = UtdTracker (fakeAnalyticsService)
9898 sut.onUtd(
99- UnableToDecryptInfo (
99+ aRustUnableToDecryptInfo (
100100 eventId = AN_EVENT_ID .value,
101101 timeToDecryptMs = 123 .toULong(),
102102 cause = UtdCause .UNSIGNED_DEVICE ,
@@ -119,7 +119,7 @@ class UtdTrackerTest {
119119 val fakeAnalyticsService = FakeAnalyticsService ()
120120 val sut = UtdTracker (fakeAnalyticsService)
121121 sut.onUtd(
122- UnableToDecryptInfo (
122+ aRustUnableToDecryptInfo (
123123 eventId = AN_EVENT_ID .value,
124124 timeToDecryptMs = 123 .toULong(),
125125 cause = UtdCause .VERIFICATION_VIOLATION ,
0 commit comments