Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 11 for robolectric (0.06 seconds)

  1. okhttp/src/androidHostTest/resources/okhttp3/robolectric.properties

    # Robolectric on API 36 requires JDK 21
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Feb 04 20:45:04 GMT 2026
    - 47 bytes
    - Click Count (0)
  2. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidLog.kt

        } catch (re: RuntimeException) {
          // Happens with non-robolectric unit tests
          System.err.println("Possibly running android unit test without robolectric")
          re.printStackTrace()
        } catch (ule: UnsatisfiedLinkError) {
          // Happens with Paparazzi - with Android classes on the classpath
          System.err.println("Possibly running android unit test without robolectric")
          ule.printStackTrace()
        }
      }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Oct 25 11:16:17 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Jdk9Platform.kt

    import javax.net.ssl.X509TrustManager
    import okhttp3.Protocol
    import okhttp3.internal.SuppressSignatureCheck
    
    /**
     * OpenJDK 9+ and JDK8 build 252+.
     *
     * This may also be used for Android tests with Robolectric.
     */
    @Suppress("NewApi")
    open class Jdk9Platform : Platform() {
      @SuppressSignatureCheck
      override fun configureTlsExtensions(
        sslSocket: SSLSocket,
        hostname: String?,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 3.6K bytes
    - Click Count (0)
  4. okhttp/build.gradle.kts

        }
    
        withDeviceTest {
          instrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
          execution = "HOST"
        }
    
        // SDK 35 needs 17, for now avoid trying to run on
        // multiple robolectric versions, since device tests
        // do that
        if (testJavaVersion >= 17) {
          withHostTest {
            isIncludeAndroidResources = true
          }
        }
      }
    
      sourceSets {
        val commonJvmAndroid =
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Feb 04 22:16:39 GMT 2026
    - 11.4K bytes
    - Click Count (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Platform.kt

        return try {
          // Attempt to get the trust manager from an OpenJDK socket factory. We attempt this on all
          // platforms in order to support Robolectric, which mixes classes from both Android and the
          // Oracle JDK. Note that we don't support HTTP/2 or other nice features on Robolectric.
          val sslContextClass = Class.forName("sun.security.ssl.SSLContextImpl")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/base/Platform.java

        // If anyone in our monorepo uses the Android copy of Guava on a JVM, that would be unfortunate.
        // But that is only likely to happen in Robolectric tests, where the risks of JDK regex are low.
        return new JdkPatternCompiler();
      }
    
      private static final class JdkPatternCompiler implements PatternCompiler {
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Dec 29 17:36:00 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  7. CHANGELOG.md

     *  New: `EventListener.plus()` makes it easier to observe events in multiple listeners.
     *  Fix: Don't spam logs with _‘Method isLoggable in android.util.Log not mocked.’_ when using
        OkHttp in Robolectric and Paparazzi tests.
     *  Upgrade: [Kotlin 2.2.21][kotlin_2_2_21].
     *  Upgrade: [Okio 3.16.2][okio_3_16_2].
     *  Upgrade: [ZSTD-KMP 0.4.0][zstd_kmp_0_4_0]. This update fixes a bug that caused APKs to fail
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 15 11:57:47 GMT 2026
    - 36.2K bytes
    - Click Count (2)
  8. okhttp-testing-support/build.gradle.kts

            },
          )
        },
      )
    
      api(libs.hamcrest.library)
      api(libs.junit.jupiter.api)
      api(libs.junit.jupiter.params)
    
      api(libs.junit.pioneer)
    
      compileOnly(libs.robolectric.android)
    
      testImplementation(libs.kotlin.test.common)
      testImplementation(libs.kotlin.test.junit)
    }
    
    animalsniffer {
      isIgnoreFailures = true
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 1.3K bytes
    - Click Count (1)
  9. gradle/libs.versions.toml

    square-retrofit = { module = "com.squareup.retrofit2:retrofit", version.ref = "square-retrofit" }
    robolectric-android = { module = "org.robolectric:android-all", version.ref = "robolectric-android" }
    robolectric = { module = "org.robolectric:robolectric", version.ref = "robolectric" }
    signature-android-apilevel21 = { module = "net.sf.androidscents.signature:android-api-level-21", version.ref = "signature-android-apilevel21" }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 31 22:01:48 GMT 2026
    - 12K bytes
    - Click Count (0)
  10. android-test/build.gradle.kts

      testImplementation(libs.assertk)
      testImplementation(projects.okhttpTls)
      "friendsTestImplementation"(projects.loggingInterceptor)
      testImplementation(libs.androidx.test.runner)
      testImplementation(libs.robolectric)
      testImplementation(libs.androidx.espresso.core)
      testImplementation(libs.square.okio.fakefilesystem)
      testImplementation(projects.okhttpTestingSupport)
      testImplementation(libs.conscrypt.openjdk)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 3.8K bytes
    - Click Count (2)
Back to Top