mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
fix: test compilation
This commit is contained in:
+17
-5
@@ -43,8 +43,11 @@ class RtcNotificationContentFormatterTest : RobolectricTest() {
|
|||||||
fun `Should not display declined info in rooms`() {
|
fun `Should not display declined info in rooms`() {
|
||||||
val result = formatter.format(
|
val result = formatter.format(
|
||||||
CallNotifyContent(
|
CallNotifyContent(
|
||||||
CallIntent.VIDEO,
|
callIntent = CallIntent.VIDEO,
|
||||||
declinedBy = listOf(A_USER_ID_2, A_USER_ID_3)
|
declinedBy = listOf(A_USER_ID_2, A_USER_ID_3),
|
||||||
|
activeMembers = emptyList(),
|
||||||
|
isJoined = false,
|
||||||
|
callStartTsMillis = 0
|
||||||
),
|
),
|
||||||
false
|
false
|
||||||
)
|
)
|
||||||
@@ -58,7 +61,10 @@ class RtcNotificationContentFormatterTest : RobolectricTest() {
|
|||||||
val result = formatter.format(
|
val result = formatter.format(
|
||||||
CallNotifyContent(
|
CallNotifyContent(
|
||||||
CallIntent.VIDEO,
|
CallIntent.VIDEO,
|
||||||
declinedBy = listOf(fakeMatrixClient.sessionId)
|
declinedBy = listOf(fakeMatrixClient.sessionId),
|
||||||
|
activeMembers = listOf(A_USER_ID_2),
|
||||||
|
isJoined = false,
|
||||||
|
callStartTsMillis = 0
|
||||||
),
|
),
|
||||||
true
|
true
|
||||||
)
|
)
|
||||||
@@ -72,7 +78,10 @@ class RtcNotificationContentFormatterTest : RobolectricTest() {
|
|||||||
val result = formatter.format(
|
val result = formatter.format(
|
||||||
CallNotifyContent(
|
CallNotifyContent(
|
||||||
CallIntent.VIDEO,
|
CallIntent.VIDEO,
|
||||||
declinedBy = listOf(A_USER_ID_2)
|
declinedBy = listOf(A_USER_ID_2),
|
||||||
|
activeMembers = listOf(fakeMatrixClient.sessionId),
|
||||||
|
isJoined = true,
|
||||||
|
callStartTsMillis = 0
|
||||||
),
|
),
|
||||||
true
|
true
|
||||||
)
|
)
|
||||||
@@ -86,7 +95,10 @@ class RtcNotificationContentFormatterTest : RobolectricTest() {
|
|||||||
val result = formatter.format(
|
val result = formatter.format(
|
||||||
CallNotifyContent(
|
CallNotifyContent(
|
||||||
CallIntent.AUDIO,
|
CallIntent.AUDIO,
|
||||||
declinedBy = listOf()
|
declinedBy = listOf(),
|
||||||
|
activeMembers = emptyList(),
|
||||||
|
isJoined = false,
|
||||||
|
callStartTsMillis = 0
|
||||||
),
|
),
|
||||||
true
|
true
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user