- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for getInstrumentation (0.1 sec)
-
regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt
import org.junit.runner.RunWith /** * Android HttpEngine. */ @RunWith(AndroidJUnit4::class) @SdkSuppress(minSdkVersion = 34) class AndroidHttpEngineTest { val context = InstrumentationRegistry.getInstrumentation().context val cacheDir = context.cacheDir.resolve("httpEngine").also { it.mkdirs() } val engine = HttpEngine.Builder(context) .setEnableBrotli(true)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 24 13:19:43 UTC 2024 - 6.2K bytes - Viewed (0) -
okhttp-android/src/androidTest/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt
assertThat(exception).isNull() assertThat(allAddresses).isEmpty() } @Test fun testRequestOnNetwork() { assumeNetwork() val context = InstrumentationRegistry.getInstrumentation().context val connectivityManager = context.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager val network =
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.7K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt
client.close() } } @Test fun testRequestUsesPlayProvider() { assumeNetwork() try { try { ProviderInstaller.installIfNeeded(InstrumentationRegistry.getInstrumentation().targetContext) } catch (gpsnae: GooglePlayServicesNotAvailableException) { throw TestAbortedException("Google Play Services not available", gpsnae) } val clientCertificates =
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 27K bytes - Viewed (0)