Skip to content

Commit 927dbca

Browse files
committed
Fix RustMatrixClientTest
1 parent c24d5fc commit 927dbca

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

libraries/matrix/impl/src/test/kotlin/io/element/android/libraries/matrix/impl/fixtures/fakes/FakeFfiClient.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import org.matrix.rustcomponents.sdk.PusherKind
2525
import org.matrix.rustcomponents.sdk.RoomDirectorySearch
2626
import org.matrix.rustcomponents.sdk.Session
2727
import org.matrix.rustcomponents.sdk.SessionVerificationController
28+
import org.matrix.rustcomponents.sdk.SpaceService
2829
import org.matrix.rustcomponents.sdk.SyncService
2930
import org.matrix.rustcomponents.sdk.SyncServiceBuilder
3031
import org.matrix.rustcomponents.sdk.TaskHandle
@@ -52,6 +53,7 @@ class FakeFfiClient(
5253
override suspend fun cachedAvatarUrl(): String? = null
5354
override suspend fun restoreSession(session: Session) = Unit
5455
override fun syncService(): SyncServiceBuilder = FakeFfiSyncServiceBuilder()
56+
override fun spaceService(): SpaceService = FakeFfiSpaceService()
5557
override fun roomDirectorySearch(): RoomDirectorySearch = FakeFfiRoomDirectorySearch()
5658
override suspend fun setPusher(
5759
identifiers: PusherIdentifiers,
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright 2025 New Vector Ltd.
3+
*
4+
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
5+
* Please see LICENSE files in the repository root for full details.
6+
*/
7+
8+
package io.element.android.libraries.matrix.impl.fixtures.fakes
9+
10+
import org.matrix.rustcomponents.sdk.NoPointer
11+
import org.matrix.rustcomponents.sdk.SpaceService
12+
13+
class FakeFfiSpaceService : SpaceService(NoPointer)

0 commit comments

Comments
 (0)