mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 02:25:21 +00:00
Mock Android Log to fix PeerManager tests (#239)
This commit is contained in:
@@ -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 com.bitchat.android.mesh.PeerManager
|
||||||
import junit.framework.TestCase.assertEquals
|
import junit.framework.TestCase.assertEquals
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import kotlin.text.appendLine
|
|
||||||
|
|
||||||
|
|
||||||
class PeerManagerTest {
|
class PeerManagerTest {
|
||||||
|
|||||||
Reference in New Issue
Block a user