Skip to content

Commit

Permalink
Fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime NATUREL committed Oct 11, 2022
1 parent 3adc5ca commit 4aca1dc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ class SessionInfoView @JvmOverloads constructor(
}

views.sessionInfoLastIPAddressTextView.setTextOrHide(deviceInfo.lastSeenIp?.takeIf { isLastSeenDetailsVisible })
views.sessionInfoLastIPAddressTextView.text = "XX.XXX.XXX.XX"
}

private fun renderDetailsButton(isDetailsButtonVisible: Boolean) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import androidx.lifecycle.liveData
import io.mockk.Ordering
import io.mockk.coVerify
import io.mockk.every
import io.mockk.justRun
import io.mockk.mockk
import io.mockk.slot
import io.mockk.verify
Expand All @@ -45,4 +46,12 @@ class FakePushersService : PushersService by mockk(relaxed = true) {
verify { enqueueAddHttpPusher(capture(httpPusherSlot)) }
return httpPusherSlot.captured
}

fun givenRefreshPushersSucceeds() {
justRun { refreshPushers() }
}

fun verifyRefreshPushers() {
verify { refreshPushers() }
}
}
2 changes: 0 additions & 2 deletions vector/src/test/java/im/vector/app/test/fakes/FakeSession.kt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class FakeSession(
private val fakeEventService: FakeEventService = FakeEventService(),
val fakeSessionAccountDataService: FakeSessionAccountDataService = FakeSessionAccountDataService(),
val fakeFilterService: FakeFilterService = FakeFilterService(),
val fakePushersService: FakePushersService = FakePushersService(),
) : Session by mockk(relaxed = true) {

init {
Expand All @@ -65,7 +64,6 @@ class FakeSession(
override fun pushersService() = fakePushersService
override fun accountDataService() = fakeSessionAccountDataService
override fun filterService() = fakeFilterService
override fun pushersService() = fakePushersService

fun givenVectorStore(vectorSessionStore: VectorSessionStore) {
coEvery {
Expand Down

0 comments on commit 4aca1dc

Please sign in to comment.