Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for Robolectric (0.99 sec)

  1. 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,
    ) {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  2. 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 {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  3. okhttp/okhttp3.pro

    -dontwarn org.codehaus.mojo.animal_sniffer.*
    
    # OkHttp platform used only on JVM and when Conscrypt and other security providers are available.
    # May be used with robolectric or deliberate use of Bouncy Castle on Android
    -dontwarn okhttp3.internal.platform.**
    -dontwarn org.conscrypt.**
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Jul 19 13:25:00 UTC 2025
    - 512 bytes
    - Viewed (0)
  4. gradle/libs.versions.toml

    playservices-safetynet = "com.google.android.gms:play-services-safetynet:18.1.0"
    retrofit = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit" }
    robolectric-android = "org.robolectric:android-all:16-robolectric-13921718"
    robolectric = "org.robolectric:robolectric:4.16"
    #noinspection UnusedVersionCatalogEntry
    signature-android-apilevel21 = "net.sf.androidscents.signature:android-api-level-21:5.0.1_r2"
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 19 22:05:50 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  5. okhttp/src/androidUnitTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixTesting.android.kt

     * limitations under the License.
     */
    package okhttp3.internal.publicsuffix
    
    import androidx.test.core.app.ApplicationProvider
    import okhttp3.internal.platform.PlatformRegistry
    import org.robolectric.RobolectricTestRunner
    
    actual typealias PublicSuffixTestRunner = RobolectricTestRunner
    
    actual fun beforePublicSuffixTest() {
      PlatformRegistry.applicationContext = ApplicationProvider.getApplicationContext()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Jul 31 08:21:20 UTC 2025
    - 974 bytes
    - Viewed (0)
  6. 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.
     */
    open class Jdk9Platform : Platform() {
      @SuppressSignatureCheck
      override fun configureTlsExtensions(
        sslSocket: SSLSocket,
        hostname: String?,
        protocols: List<@JvmSuppressWildcards Protocol>,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu May 29 16:52:38 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  7. okhttp/src/androidMain/kotlin/okhttp3/OkHttp.android.kt

    actual object OkHttp {
      @JvmField
      actual val VERSION: String = CONST_VERSION
    
      /**
       * Configure the ApplicationContext. Not needed unless the AndroidX Startup [Initializer] is disabled, or running
       * a robolectric test.
       *
       * The functionality that will fail without a valid Context is primarily Cookies and URL Domain handling, but
       * may expand in the future.
       */
      fun initialize(applicationContext: Context) {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  8. 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")
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  9. 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
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 05 16:02:59 UTC 2025
    - 36.2K bytes
    - Viewed (2)
  10. docs/changelogs/changelog_3x.md

     *  New: Support SHA-256 pins in certificate pinner.
    
    
    ## Version 3.1.2
    
    _2016-02-10_
    
     *  Fix: Don’t crash when finding the trust manager on Robolectric. We attempted
        to detect the host platform and got confused because Robolectric looks like
        Android but isn’t!
     *  Fix: Change `CertificatePinner` to skip sanitizing the certificate chain
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
Back to top