summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Song Chun Fan <schfan@google.com> 2023-09-22 22:01:17 +0000
committer Song Chun Fan <schfan@google.com> 2023-09-22 22:04:07 +0000
commit7f04e10ed348c15c7c54fac012b4b7a0e189406d (patch)
tree09a9e71f7833074927f8243b48085287d2cf49d8 /libs/androidfw/AssetsProvider.cpp
parentd058fd1646511ce44de82f05b2382d44aa26319a (diff)
[SettingsProvider] fix mock leakage in NameValueCacheTest
Settings.java keeps a reference of ContentProvider in ContentProviderHolder so it doesn't have to call contentResolver.acquireProvider on repeated calls. However, when we pass in a mock ContentProvider there, it doesn't get automatically removed and remains active in the same test process, unless the cleanup was called specifically. This may affect other tests that use the Settings class in the same test process. This CL fixes that. Change-Id: I2d1f169fdc48a9defe54c45f99e2f75302632417 BUG: 297724333 FIXES: 297724333 Test: presubmit
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions