diff options
| author | 2023-07-31 11:24:41 -0400 | |
|---|---|---|
| committer | 2023-08-10 15:14:13 +0000 | |
| commit | 434e9d79033cea884210aaccf4e97bc9d2900092 (patch) | |
| tree | b1501b014f228b1d78f9866e2a4b43f650551d72 /api/api_test.go | |
| parent | 5fbbe4489dc79e906683dc3f4ce0cb8bdfaed98c (diff) | |
HeadsUpManagerTest: Improve and add test cases
1. Fixes the auto-dismiss tests to account for touch acceptance delay
and adds a test for touch acceptance delay itself.
2. Adds a test for the auto-dismiss timeout when *not* overridden by the
AccessibilityManager.
3. Add tests for the auto-dismiss timeout on stickyForSomeTime HUNs.
4. Fixes createStickySbn and createStickyForSomeTimeSbn to match the
expected state from NotificationManagerService, moves them out of
AlertingManagerNotificationTest since they're not used in it, and
fixes a related incorrect test case.
5. Extends the test of removing a HUN before the minimum display time to
assert that it is removed once the minimum display time has passed.
6. Adds a test that asserts that, once the minimum display time has
passed, we can remove a HUN immediately.
7. Makes some changes to improve code clarity.
Bug: 286263566
Fixes: 294241624
Fixes: 294242806
Fixes: 294284711
Fixes: 294283040
Test: atest HeadsUpManagerTest
Change-Id: Iba0512ce2b5bcf0b80679271be77159c2880a442
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions