Fix Formatting issue and rename class.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user