Add unit test to verify the race between ip reachability and provisioning failure.

Per current implementation wifi still will disconnect when an immediate
ip provisioning failure comes after ip reachability failure sometimes
due to the race. Prepare a unit test to verify the current behavior and
update the test behavior with a follow-up fix together.

Bug: 286338765
Test: atest com.android.server.wifi.ClientModeImplTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:43d6a8951a2f0c3f8712b693557b3a7241a90f04)
Merged-In: I2ccfd4d4890f2466fa7f9249e087d49b1b8b4c51
Change-Id: I2ccfd4d4890f2466fa7f9249e087d49b1b8b4c51
1 file changed