Check for memory leaks after tests in FallbackRecentsTest
Test: e.g. goToOverviewFromApp() Bug: 185806101 Change-Id: I6e618e850740afa69989f652321d4075d3cda13d
This commit is contained in:
parent
222b4757f5
commit
9b505e3148
|
@ -61,6 +61,7 @@ import com.android.launcher3.util.Wait;
|
|||
import com.android.launcher3.util.rule.FailureWatcher;
|
||||
import com.android.quickstep.views.RecentsView;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.junit.rules.RuleChain;
|
||||
|
@ -141,6 +142,12 @@ public class FallbackRecentsTest {
|
|||
}
|
||||
}
|
||||
|
||||
@After
|
||||
public void verifyLauncherState() {
|
||||
// Limits UI tests affecting tests running after them.
|
||||
AbstractQuickStepTest.checkDetectedLeaks(mLauncher);
|
||||
}
|
||||
|
||||
// b/143488140
|
||||
//@NavigationModeSwitch
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue