mirror of
https://github.com/samsonjs/media.git
synced 2026-04-05 11:15:46 +00:00
Change DefaultHttpDataSourceTest to an instrumentation test
The Robolectric implementation of HttpURLConnection forwards to the JRE
implementation [1], which behaves differently to the Android one
available on devices and emulators. For these tests to be a realistic
test of the HTTP stack used in real playbacks we can't use Robolectric.
Similar to df0e89c167
[1] https://github.com/robolectric/robolectric/issues/6769#issuecomment-943556156
PiperOrigin-RevId: 416013662
This commit is contained in:
parent
e8ee6dad2a
commit
95a750cefd
2 changed files with 1 additions and 0 deletions
|
|
@ -42,6 +42,7 @@ dependencies {
|
|||
androidTestImplementation 'androidx.test:runner:' + androidxTestRunnerVersion
|
||||
androidTestImplementation 'com.linkedin.dexmaker:dexmaker:' + dexmakerVersion
|
||||
androidTestImplementation 'com.linkedin.dexmaker:dexmaker-mockito:' + dexmakerVersion
|
||||
androidTestImplementation 'com.squareup.okhttp3:mockwebserver:' + okhttpVersion
|
||||
androidTestImplementation(project(modulePrefix + 'testutils')) {
|
||||
exclude module: modulePrefix.substring(1) + 'library-core'
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue