Fix state machine dispatching in tests

This commit fixes the IkeSessionStateMachineTests, ensuring that after
each expected transition, dispatchAll() is called to synchronize the
expected states.

Additionally, this adds a FORCE_IDLE command to the state machine, such
that the unit tests can trigger additional state changes from IDLE.

Bug: 132113840
Test: Unit tests passing
Change-Id: I3f1c54b2745bd25cdf7f0a91605e888edfb81935
2 files changed
tree: ca1f0e4d844c0647d69af7b19ee39ad3256fa785
  1. src/
  2. tests/
  3. Android.bp
  4. OWNERS
  5. PREUPLOAD.cfg
  6. README.md
  7. 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.