Included metrics for LRU replacement.
[ Merge of http://go/wvgerrit/88016 ] In the event of an LRU replacement event on AddKey, we gather some metrics on what the state of the usage table is and some info on the the entry that was removed. Metrics collected: - How many usage info (streaming license) in the table - How many offline licenses in the table - What type of entry was evicted from the table - How stale (time since last use) was the evicted entry This also enables unit tests for marshalling the metrics into proto message on Android unit test. Bug: 135046978 Test: Android and Linux unit tests Change-Id: If8e562ae6f98270a0e6c5aa4251127ce9b79a8b0
This commit is contained in:
@@ -55,6 +55,7 @@ WV_TEST_TARGETS="base64_test \
|
||||
libwvdrmmediacrypto_test \
|
||||
license_keys_unittest \
|
||||
license_unittest \
|
||||
metrics_collections_unittest \
|
||||
oemcrypto_test \
|
||||
policy_engine_constraints_unittest \
|
||||
policy_engine_unittest \
|
||||
@@ -101,7 +102,7 @@ try_adb_push() {
|
||||
}
|
||||
|
||||
# Push the tests to the device
|
||||
for f in $WV_TEST_TARGETS; do
|
||||
for f in $WV_TEST_TARGETS; do
|
||||
try_adb_push $f
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user