From 9400d2be3e708261b99f3bb8cdb9d0e5be06db2a Mon Sep 17 00:00:00 2001 From: vadimt Date: Fri, 14 May 2021 12:07:04 -0700 Subject: [PATCH] Leak 2 views for the view leak detection test This compensates for the noise in the view count. Test: labtest Bug: 187761685 Change-Id: I04a256f2b36a62e6c7c602d51cccf3a6f1c75ee0 --- .../android/launcher3/testing/DebugTestInformationHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/ext_tests/src/com/android/launcher3/testing/DebugTestInformationHandler.java b/ext_tests/src/com/android/launcher3/testing/DebugTestInformationHandler.java index c6ae6bef21..72b8d3fcae 100644 --- a/ext_tests/src/com/android/launcher3/testing/DebugTestInformationHandler.java +++ b/ext_tests/src/com/android/launcher3/testing/DebugTestInformationHandler.java @@ -109,6 +109,7 @@ public class DebugTestInformationHandler extends TestInformationHandler { case TestProtocol.REQUEST_VIEW_LEAK: { if (sLeaks == null) sLeaks = new LinkedList(); sLeaks.add(new View(mContext)); + sLeaks.add(new View(mContext)); return response; }