mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-08-29 07:16:08 +00:00
Mock Android Log to fix PeerManager tests (#239)
This commit is contained in:
parent
b34ef896c7
commit
763d290055
28
app/src/test/kotlin/android/util/Log.kt
Normal file
28
app/src/test/kotlin/android/util/Log.kt
Normal file
@ -0,0 +1,28 @@
|
||||
@file:JvmName("Log")
|
||||
|
||||
package android.util
|
||||
|
||||
fun d(tag: String, msg: String): Int {
|
||||
println("DEBUG: $tag: $msg")
|
||||
return 0;
|
||||
}
|
||||
|
||||
fun e(tag: String, msg: String): Int {
|
||||
println("ERROR: $tag: $msg")
|
||||
return 0;
|
||||
}
|
||||
|
||||
fun w(tag: String, msg: String): Int {
|
||||
println("WARN: $tag: $msg")
|
||||
return 0;
|
||||
}
|
||||
|
||||
fun v(tag: String, msg: String): Int {
|
||||
println("VERBOSE: $tag: $msg")
|
||||
return 0;
|
||||
}
|
||||
|
||||
fun i(tag: String, msg: String): Int {
|
||||
println("INFO: $tag: $msg")
|
||||
return 0;
|
||||
}
|
||||
@ -3,7 +3,6 @@ package com.bitchat
|
||||
import com.bitchat.android.mesh.PeerManager
|
||||
import junit.framework.TestCase.assertEquals
|
||||
import org.junit.Test
|
||||
import kotlin.text.appendLine
|
||||
|
||||
|
||||
class PeerManagerTest {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user