From 556cfb6a36d494f4e536b802f31924c56ee6d9c0 Mon Sep 17 00:00:00 2001 From: Jason Monk Date: Fri, 16 Dec 2016 14:01:25 -0500 Subject: [PATCH] Turn on dexmaker sharing classloaders for sysui tests This will allow us to mock package private things. It also happens to speed up the tests, a lot. Test: runtest systemui Change-Id: I48f39ee282a4ea3163c642c8290f302428c4a5f4 --- .../SystemUI/tests/src/com/android/systemui/SysuiTestCase.java | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/SystemUI/tests/src/com/android/systemui/SysuiTestCase.java b/packages/SystemUI/tests/src/com/android/systemui/SysuiTestCase.java index 008580ad6944e..d1d752099d193 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/SysuiTestCase.java +++ b/packages/SystemUI/tests/src/com/android/systemui/SysuiTestCase.java @@ -37,6 +37,7 @@ public abstract class SysuiTestCase { @Before public void SysuiSetup() throws Exception { + System.setProperty("dexmaker.share_classloader", "true"); mContext = new TestableContext(InstrumentationRegistry.getTargetContext(), this); }