summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorGarfield Tan <xutan@google.com>2019-07-23 12:43:05 -0700
committerWale Ogunwale <ogunwale@google.com>2019-08-17 13:17:09 +0000
commite3d37b50568607e3f6a1ec55df985dfebc735429 (patch)
tree47dbfa6f18da4cda33843a42ea4b1044b2eb7b62 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent8a1860a9ae32e130f976d48c5a75baa8055d7427 (diff)
Adopt upstream Mockito's solution to mem leak.
The upstream solution essentially disallows sharing mock between tests, so the mock of PowerManagerWrapper is moved to SystemServicesTestRule so that TestWindowManagerPolicy can use that to create window. It also makes the life of PowerManagerWrapper mock the same as the TestWindowManagerPolicy, which is used in both ActivityTestBase and WindowTestBase but PowerManagerWrapper was only available in WindowTestBase. Also, Track mocks created in ActivityStarterTests#testStartActivityPreconditions and clear them in the middle of execution because the memory usage could be ~0.8G just to run ActivityStarterTests only because of that. Bug: 123984854 Test: "tradefed.sh run commandAndExit WmTests --include-annotation android.platform.test.annotations.Presubmit --exclude-annotation androidx.test.filters.FlakyTest" suffers from a lot fewer OOME. Change-Id: I274d711fb52084d4c67547374360e373ad1e28d8
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions