Mocks the android log on test cases

This commit is contained in:
Vitor Pamplona
2025-10-10 10:47:59 -04:00
parent 0045426840
commit 0708936c23
@@ -0,0 +1,35 @@
package android.util;
public class Log {
public static int d(String tag, String msg) {
System.out.println("DEBUG: " + tag + ": " + msg);
return 0;
}
public static int i(String tag, String msg) {
System.out.println("INFO: " + tag + ": " + msg);
return 0;
}
public static int w(String tag, String msg) {
System.out.println("WARN: " + tag + ": " + msg);
return 0;
}
public static int w(String tag, String msg, Throwable e) {
System.out.println("WARN: " + tag + ": " + msg);
e.printStackTrace();
return 0;
}
public static int e(String tag, String msg) {
System.out.println("ERROR: " + tag + ": " + msg);
return 0;
}
public static int e(String tag, String msg, Throwable e) {
System.out.println("ERROR: " + tag + ": " + msg);
e.printStackTrace();
return 0;
}
}