Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getInstrumentation (0.06 sec)

  1. 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: 2025-05-30 11:42
    - Last Modified: 2025-03-19 19:25
    - 6.3K bytes
    - Viewed (0)
  2. 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: 2025-05-30 11:42
    - Last Modified: 2025-05-27 18:52
    - 27.9K bytes
    - Viewed (0)
Back to top