diff options
| author | 2023-03-01 09:51:12 +0000 | |
|---|---|---|
| committer | 2023-03-20 17:33:28 +0000 | |
| commit | 5de4d6599658684f11dc0336daaa4201503328cf (patch) | |
| tree | d838a8e7417734cb275c133e46f71e73a0640dfe /tests/SystemUIDemoModeController/src | |
| parent | 31302573d7d1869696252107e4289446119a9324 (diff) | |
rework LatencyTracker for testing
Modify the VisibleForTesting methods of the LatencyTracker class to
improve the testibility. The class is modified to support overriding
callbacks when actions/outcomes are taken by LatencyTracker based on
its inputs.
Test classes using LatencyTracker can now verify:
1. When PerfettoTrigger has been triggered
2. When FrameworkStatsLog is written to
This CL fixes a bug where only the global enable flag is
checked when calling onActionStart and onActionEnd. It also
adds a new enabled check for when the public logAction API is called.
Test: atest LatencyTrackerTest
Bug: 269254242
Change-Id: I4f8d21bca4a9e52fb3875e88387b8c8641f64c94
Diffstat (limited to 'tests/SystemUIDemoModeController/src')
0 files changed, 0 insertions, 0 deletions