commit | 0a29e73ffbc066f551533d14597b713d23d2fdee | [log] [tgz] |
---|---|---|
author | Anushree Ganjam <ganjam@google.com> | Wed Jan 15 17:17:21 2025 -0800 |
committer | Anushree Ganjam <ganjam@google.com> | Thu Jan 16 11:19:52 2025 -0800 |
tree | 218ee37f94dcfb4413e68523c01a9cc504cb91b3 | |
parent | bc3995222bf01123afc6ae527f4f77abf13f7295 [diff] |
Use RunListener to Clear inline mocks at the end of each test class. Inline mocks are leaking activity contexts and accumulation of these activity contexts led to OOM that resulted in test failure. See https://github.com/mockito/mockito/issues/1614 for details on mockito caused memory leaks This change works for both soong and gradle builds. Bug: 378520480 Test: atest and android studio builds Flag: TEST_ONLY Change-Id: I4a50993621ea416a02a41dd2f9c330d1599f065c