summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorvadimt <vadimt@google.com>2019-08-14 17:45:45 -0700
committerVadim Tryshev <vadimt@google.com>2019-09-17 18:49:42 +0000
commit8c2ae545cf13d6c0aff6ecef1d6b0a0e87f0f980 (patch)
tree127a7e38d8623f2cf2eeeb71bd3ea1a496de0619 /tests
parente17a699618b088992d81984428d72d0e475e3796 (diff)
downloadandroid_packages_apps_Trebuchet-8c2ae545cf13d6c0aff6ecef1d6b0a0e87f0f980.tar.gz
android_packages_apps_Trebuchet-8c2ae545cf13d6c0aff6ecef1d6b0a0e87f0f980.tar.bz2
android_packages_apps_Trebuchet-8c2ae545cf13d6c0aff6ecef1d6b0a0e87f0f980.zip
Support for tests that a leak is detected
Bug: 139137636 Change-Id: Ib4f02d6b3798e3fdf3d8e5758c09d2b642404af5 Merged-in: Ib4f02d6b3798e3fdf3d8e5758c09d2b642404af5
Diffstat (limited to 'tests')
-rw-r--r--tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
index c6e7daceb..15615fc6b 100644
--- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
+++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
@@ -961,4 +961,12 @@ public final class LauncherInstrumentation {
return getTestInfo(TestProtocol.REQUEST_TOTAL_PSS_KB).
getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD);
}
+
+ public void produceJavaLeak() {
+ getTestInfo(TestProtocol.REQUEST_JAVA_LEAK);
+ }
+
+ public void produceNativeLeak() {
+ getTestInfo(TestProtocol.REQUEST_NATIVE_LEAK);
+ }
} \ No newline at end of file