Add unit tests for the liveness checks related functions.

Add unit tests for a new liveness check API.
 - Test for requests a liveness check. Depending on whether the
 IkeSession has a running task at the time of the request, it can
 execute on demand DPD or join to running task.
 - Test for status callback for a liveness check. Status callbacks
 are tested for the start and result of liveness check.
 - Test for retransmission timeouts for a liveness check. The on-
 demand DPD task is tested for a dedicated retransmission timeout.

Bug: 302244230
Test: atest FrameworksIkeTests CtsIkeTestCases
Change-Id: I358f29f23b62a09f5c7e90e2390a86aa863ab67e
3 files changed
tree: 5a68c6bd843c1edbad25609ccb866c7721033bbf
  1. apex/
  2. api/
  3. src/
  4. tests/
  5. Android.bp
  6. jarjar-rules-shared.txt
  7. jarjar-rules-test.txt
  8. lint-baseline.xml
  9. OWNERS
  10. PREUPLOAD.cfg
  11. README.md
  12. TEST_MAPPING
README.md

IKEv2 Library for Android

Introduction

This IKEv2 library is an in-process client library implementing the IKEv2 protocol as well as extensions necessary for the support of IWLAN. It is designed to work in a non-privileged fashion on top of the Android IPsec API surface.