Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 22 for robolectric (0.13 seconds)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. android-test/src/test/kotlin/okhttp/android/test/ShadowDnsResolver.kt

    import android.net.DnsResolver
    import android.net.Network
    import android.os.CancellationSignal
    import java.net.InetAddress
    import java.util.concurrent.Executor
    import org.robolectric.annotation.Implementation
    import org.robolectric.annotation.Implements
    import org.robolectric.shadow.api.Shadow
    
    @Implements(DnsResolver::class)
    class ShadowDnsResolver {
      var responder: (Request) -> Unit = {
        it.callback.onAnswer(listOf(), 0)
      }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Dec 30 23:28:56 GMT 2024
    - 1.7K bytes
    - Click Count (0)
  6. 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)
  7. 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)
  8. android-test/src/test/kotlin/okhttp/android/test/DisabledInitialiserTest.kt

    import okhttp3.internal.platform.PlatformRegistry
    import org.junit.AfterClass
    import org.junit.Before
    import org.junit.Test
    import org.junit.runner.RunWith
    import org.robolectric.RobolectricTestRunner
    import org.robolectric.annotation.Config
    
    @RunWith(RobolectricTestRunner::class)
    @Config(
      sdk = [23, 26, 30, 33, 35],
    )
    class DisabledInitialiserTest {
      @Before
      fun setContext() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Aug 30 16:25:39 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  9. android-test/src/test/kotlin/okhttp/android/test/AndroidLoggingTest.kt

    import okhttp3.internal.platform.AndroidPlatform
    import okhttp3.logging.HttpLoggingInterceptor
    import okhttp3.logging.LoggingEventListener
    import org.junit.Test
    import org.junit.runner.RunWith
    import org.robolectric.RobolectricTestRunner
    import org.robolectric.shadows.ShadowLog
    
    @RunWith(RobolectricTestRunner::class)
    class AndroidLoggingTest {
      val clientBuilder =
        OkHttpClient.Builder().connectionSpecs(listOf(ConnectionSpec.CLEARTEXT)).dns {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Aug 21 14:27:04 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  10. android-test/src/test/kotlin/okhttp/android/test/AndroidSocketAdapterTest.kt

    import org.junit.Assert.assertTrue
    import org.junit.Assume.assumeFalse
    import org.junit.Assume.assumeTrue
    import org.junit.Test
    import org.junit.runner.RunWith
    import org.robolectric.ParameterizedRobolectricTestRunner
    import org.robolectric.ParameterizedRobolectricTestRunner.Parameters
    
    @RunWith(ParameterizedRobolectricTestRunner::class)
    class AndroidSocketAdapterTest(
      val adapter: SocketAdapter,
    ) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 3.6K bytes
    - Click Count (0)
Back to Top