From 8c2ae545cf13d6c0aff6ecef1d6b0a0e87f0f980 Mon Sep 17 00:00:00 2001 From: vadimt Date: Wed, 14 Aug 2019 17:45:45 -0700 Subject: Support for tests that a leak is detected Bug: 139137636 Change-Id: Ib4f02d6b3798e3fdf3d8e5758c09d2b642404af5 Merged-in: Ib4f02d6b3798e3fdf3d8e5758c09d2b642404af5 --- .../tapl/com/android/launcher3/tapl/LauncherInstrumentation.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') 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 -- cgit v1.2.3