-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathMockReflected.java
51 lines (38 loc) · 1.95 KB
/
MockReflected.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package com.instabug.flutter.util;
import android.graphics.Bitmap;
import androidx.annotation.Nullable;
import com.instabug.apm.networkinterception.cp.APMCPNetworkLog;
import com.instabug.crash.models.IBGNonFatalException;
import org.json.JSONObject;
import java.util.Map;
/**
* Includes fake implementations of methods called by reflection.
* Used to verify whether or not a private methods was called.
*/
@SuppressWarnings("unused")
public class MockReflected {
/**
* Instabug.reportScreenChange
*/
public static void reportScreenChange(Bitmap screenshot, String name) {}
/**
* Instabug.setCustomBrandingImage
*/
public static void setCustomBrandingImage(Bitmap light, Bitmap dark) {}
/**
* Instabug.setCurrentPlatform
*/
public static void setCurrentPlatform(int platform) {}
/**
* APMNetworkLogger.log
*/
public static void apmNetworkLog(long requestStartTime, long requestDuration, String requestHeaders, String requestBody, long requestBodySize, String requestMethod, String requestUrl, String responseHeaders, String responseBody, String responseBodySize, long statusCode, int responseContentType, String errorMessage, String var18, @Nullable String gqlQueryName, @Nullable String serverErrorMessage, @Nullable APMCPNetworkLog.W3CExternalTraceAttributes w3CExternalTraceAttributes) {}
/**
* CrashReporting.reportException
*/
public static void crashReportException(JSONObject exception, boolean isHandled) {}
public static void crashReportException(JSONObject exception, boolean isHandled, Map<String,String> userAttributes, JSONObject fingerPrint, IBGNonFatalException.Level level) {}
public static void startUiTraceCP(String screenName, Long microTimeStamp, Long traceId) {}
public static void reportScreenLoadingCP(Long startTimeStampMicro, Long durationMicro, Long uiTraceId) {}
public static void endScreenLoadingCP(Long timeStampMicro, Long uiTraceId) {}
}