Commit df0e89c1 by ibaker Committed by tonihei

Make DefaultHttpDataSourceContractTest an instrumentation test

Robolectric uses the JRE HttpURLConnection [1], while real Android
devices and emulators use OkHttp to implement HttpURLConnection. This
can lead to important differences in behaviour, so it's better to use
instrumentation tests when specific HTTP behaviour is important.

[1] https://github.com/robolectric/robolectric/issues/6769#issuecomment-943556156

PiperOrigin-RevId: 408840295
parent c1aaf580
...@@ -18,10 +18,12 @@ ...@@ -18,10 +18,12 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
package="com.google.android.exoplayer2.upstream.test"> package="com.google.android.exoplayer2.upstream.test">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-sdk/> <uses-sdk/>
<application <application
android:allowBackup="false" android:allowBackup="false"
android:usesCleartextTraffic="true"
tools:ignore="MissingApplicationIcon,HardcodedDebugMode"> tools:ignore="MissingApplicationIcon,HardcodedDebugMode">
<provider <provider
android:authorities="com.google.android.exoplayer2.testutil.AssetContentProvider" android:authorities="com.google.android.exoplayer2.testutil.AssetContentProvider"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment