Refactor WebViewTest#setNetworkAvailable

This test should now behave more reliably given the asynchronous
nature of WebView#setNetworkAvailable.

Bug: 8280368
Change-Id: I178559ee1385ec92a06e9aa4cb33341babc41f03
2 files changed