[Android] Added main proguard exceptions for tests

This allows to share the same exceptions for methods for invocation in
both test and regular apks.
This commit is contained in:
samartnik
2021-02-18 09:23:34 -05:00
parent 7a3ce4daab
commit bbd56259b5
4 changed files with 11 additions and 20 deletions
@@ -14,9 +14,9 @@ import java.lang.reflect.Method;
public class BraveReflectionUtil {
private static String TAG = "BraveReflectionUtil";
// For each method invocation add appropriate test to
// 'brave/android/javatests/org/chromium/chrome/browser/BytecodeTest.java' with checking
// parameter types.
// NOTE: For each method for invocation add appropriate test to `testMethodsForInvocationExist`
// method in 'brave/android/javatests/org/chromium/chrome/browser/BytecodeTest.java' file with
// checking parameter types.
public static Object InvokeMethod(
Class methodOwner, Object obj, String method, Object... typesAndArgs) {
try {