summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Connor O'Brien <connoro@google.com> 2019-06-05 18:27:47 -0700
committer Connor O'Brien <connoro@google.com> 2019-07-01 18:07:20 -0700
commitff7bf701ad4a66ee4b9fe54c41e24fb5099fb533 (patch)
tree269139d95e3f9cf8f8cde23853060859a9809ba0 /vulkan/libvulkan/api.cpp
parent46e8189771336a1467f5bf09cbb05e15e961eb19 (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>
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions