Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for Robolectric (0.07 sec)

  1. 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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  2. 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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Aug 31 17:41:20 UTC 2025
    - 8.3K 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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jul 19 13:25:00 UTC 2025
    - 512 bytes
    - Viewed (0)
  4. 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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu May 29 16:52:38 UTC 2025
    - 3.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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 08:21:20 UTC 2025
    - 974 bytes
    - Viewed (0)
  6. 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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  7. 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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  8. 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
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  9. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidLog.kt

        try {
          for ((logger, tag) in knownLoggers) {
            enableLogging(logger, tag)
          }
        } catch (re: RuntimeException) {
          System.err.println("Possibly running android unit test without robolectric")
          re.printStackTrace()
        }
      }
    
      private fun enableLogging(
        logger: String,
        tag: String,
      ) {
        val logger = Logger.getLogger(logger)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 22 20:03:31 UTC 2025
    - 4K bytes
    - Viewed (0)
  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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
Back to top