summaryrefslogtreecommitdiff
path: root/opengl/libagl/TokenManager.cpp
diff options
context:
space:
mode:
author Connor O'Brien <connoro@google.com> 2019-06-05 18:27:47 -0700
committer Steven Moreland <smoreland@google.com> 2020-01-13 15:58:04 -0800
commita178a73ad0f1caa3ca009ddc8ff501c3bdfad883 (patch)
tree38c43faf6033dd40a056d4b8d3bd2b15fd94c176 /opengl/libagl/TokenManager.cpp
parentf03b6ae7b89b43428765e5480ecfbe8f92056cd1 (diff)
libtimeinstate: add more tests
Check reported values to confirm that getUidCpuFreqTimes() and getUidsCpuFreqTimes() are behaving reasonably. Also revise RemoveUid test to create and then delete map entries for an unused UID rather than UID 0. getUidCpuFreqTimes() is only meant to be called when an app is uninstalled, and calling it with a UID that has running tasks creates data inconsistencies that can cause the new tests to fail. Since the revised test needs to directly manipulate the BPF map in order to add a fake entry, move some definitions from cputimeinstate.cpp into a header file to make them available for the test. Test: libtimeinstate_test passes Bug: 78498733 Change-Id: I1587b1c7db870343ff863f2156b2a810d8ace915 Signed-off-by: Connor O'Brien <connoro@google.com> (cherry picked from commit ff7bf701ad4a66ee4b9fe54c41e24fb5099fb533) Merged-In: I1587b1c7db870343ff863f2156b2a810d8ace915
Diffstat (limited to 'opengl/libagl/TokenManager.cpp')
0 files changed, 0 insertions, 0 deletions