- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testRequestOnNetwork (0.08 sec)
-
okhttp-android/src/androidTest/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt
fun testDnsRequestInvalid() { val (allAddresses, exception) = dnsQuery("google.invalid") assertThat(exception).isNull() assertThat(allAddresses).isEmpty() } @Test fun testRequestOnNetwork() { assumeNetwork() val context = InstrumentationRegistry.getInstrumentation().context val connectivityManager = context.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.7K bytes - Viewed (0)