Fix unit tests to avoid failures when no network is present.

Although unit tests do not actually make any real network calls, network
check happens before making calls to the fake server. This causes
unintentional failures. With this change, we fake the connection signal
so that unit tests can simply make the calls without actually failing
due to missing network.

Test: atest RkpdAppUnitTests after enabling/disabling network
Bug: 332583967
Change-Id: Ifc26c32a77a87a1dfca07f3bb33c4dfdd6cd374a
3 files changed
tree: 291344306506170e9d78b1285ac4646654c53c34
  1. apex/
  2. app/
  3. system-server/
  4. util/
  5. OWNERS
  6. PREUPLOAD.cfg