commit | 7c792c8d010cfb5b0c780780cce1e8ebb1d4d02b | [log] [tgz] |
---|---|---|
author | Hansen Kurli <hkurli@google.com> | Thu May 18 07:44:36 2023 +0000 |
committer | Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Tue Jun 13 01:56:21 2023 +0000 |
tree | ea7c1b80a82a7fb04d22d483c75cc2406fa56668 | |
parent | ae317095ec53eefabe0efcb0406cb9d86968ab1e [diff] |
Add tests for pause, resume and stop keepalives. The tests added verify the following: 1. Stopping the keepalive will cleanup the autoKi. 2. Pausing the keepalive does not cleanup the autoKi and stopping a paused keepalive will still call the onStopped callback. 3. A starting error by resuming the keepalive will cleanup the autoKi. 4. handleStopAllKeepalives also does the appropriate callback for paused keepalives. 5. Stopping a resumed keepalive stops the correct slot when a second keepalive is started while the first is paused. Bug: 281646074 Test: atest FrameworksNetTests (cherry picked from https://android-review.googlesource.com/q/commit:01d0ef1636dfe27f79530c88d1ee7b939f511055) Merged-In: I8925fbe40323dc4584a111d0cf31de016525ef41 Change-Id: I8925fbe40323dc4584a111d0cf31de016525ef41