Fix Formatting issue and rename class.

This commit is contained in:
Benoit Marty 2024-06-04 17:29:58 +02:00
parent ced4c38ec5
commit 1f62abb1e9
2 changed files with 5 additions and 5 deletions

View file

@ -200,7 +200,7 @@ class DefaultBugReporterTest {
withScreenshot = true,
problemDescription = "a bug occurred",
canContact = true,
listener = FakeBugReporterListener(),
listener = NoopBugReporterListener(),
)
val request = server.takeRequest()
@ -242,7 +242,7 @@ class DefaultBugReporterTest {
withScreenshot = true,
problemDescription = "a bug occurred",
canContact = true,
listener = FakeBugReporterListener(),
listener = NoopBugReporterListener(),
)
val request = server.takeRequest()

View file

@ -18,9 +18,9 @@ package io.element.android.features.rageshake.impl.reporter
import io.element.android.features.rageshake.api.reporter.BugReporterListener
class FakeBugReporterListener: BugReporterListener {
class NoopBugReporterListener : BugReporterListener {
override fun onUploadCancelled() = Unit
override fun onUploadFailed(reason: String?) = Unit
override fun onProgress(progress: Int) = Unit
override fun onUploadSucceed() = Unit
override fun onProgress(progress: Int) = Unit
override fun onUploadSucceed() = Unit
}