- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for applyStrictMode (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android-test/src/androidTest/java/okhttp/android/test/StrictModeTest.kt
@Test fun testNewCall() { Platform.resetForTests() val client = OkHttpClient() applyStrictMode() // Safe on main client.newCall(Request("https://google.com/robots.txt".toHttpUrl())) assertThat(violations).isEmpty() } private fun applyStrictMode() { StrictMode.setThreadPolicy( ThreadPolicy .Builder() .detectCustomSlowCalls()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Nov 21 12:33:41 GMT 2025 - 2.2K bytes - Click Count (0)