-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathMockReflected.java
44 lines (35 loc) · 1.37 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
package com.instabug.flutter.util;
import android.graphics.Bitmap;
import androidx.annotation.Nullable;
import org.json.JSONObject;
/**
* 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) {}
/**
* CrashReporting.reportException
*/
public static void crashReportException(JSONObject exception, boolean isHandled) {}
/**
* Surveys.showSurveyCP
*/
public static void showSurveyCP(String surveyToken) {}
}