- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 20 for robolectric (0.09 seconds)
-
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 Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Aug 21 14:27:04 GMT 2025 - 3.2K bytes - Click Count (0) -
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.squareup.okio.fakefilesystem) testImplementation(projects.okhttpTestingSupport) testImplementation(rootProject.libs.conscrypt.openjdk)
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Nov 21 12:33:41 GMT 2025 - 3.9K bytes - Click Count (2) -
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>,
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu May 29 16:52:38 GMT 2025 - 3.5K bytes - Click Count (0) -
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.**
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Jul 19 13:25:00 GMT 2025 - 512 bytes - Click Count (0) -
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"Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 19 22:05:50 GMT 2025 - 8.5K bytes - Click Count (0) -
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()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Jul 31 08:21:20 GMT 2025 - 974 bytes - Click Count (0) -
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) {Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon Jul 28 07:33:49 GMT 2025 - 1.3K bytes - Click Count (0) -
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 Dec 26 11:42:13 GMT 2025 - Last Modified: Mon Jul 28 07:33:49 GMT 2025 - 8.1K bytes - Click Count (0) -
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 Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 05 16:02:59 GMT 2025 - 36.2K bytes - Click Count (2) -
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 chainCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Feb 06 14:55:54 GMT 2022 - 50.8K bytes - Click Count (0)