summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Lee Shombert <shombert@google.com> 2024-10-10 11:28:09 -0700
committer Lee Shombert <shombert@google.com> 2024-10-15 12:37:42 -0700
commit75f17d4fbd59f6a605c4ea3668177408a94c75dd (patch)
tree326ff636d73dc400c90ef0e353010b6648ba92c8 /api/api_test.go
parentf5df21d070e1101d0fcbc0937d39e0f2c816ad3a (diff)
Refactor PropertyInvalidatedCache
Refactor PropertyInvalidatedCache in preparation for putting nonces in shared memory. The refactoring is as follows: 1. A NonceHandler is created for every property key. Handles are saved in a global map, indexed by the property name. Statistics associated with the key are moved into the NonceHandler. 2. The invalidate, cork, and disable operations are now methods on the NonceHandler. 3. Testing is accomplished by using a NonceHandler that does not write to system properties. Two test APIs are obsolete but because they are in the API list, they will be updated in a later CL. Unit tests have been updated; CTS tests will be updated later, although they pass. Flag: EXEMPT refactor Bug: 360897450 Test: atest * FrameworksCoreTests:PropertyInvalidatedCacheTests * FrameworksCoreTests:IpcDataCacheTest * CtsOsTestCases:IpcDataCacheTest Change-Id: I55824fbffb9fee919298ddf3ec7ea1cba3c9bb3a
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions